Save This Page
Home » bsf-src-2.4.0 » org.apache.bsf.engines.javascript » [javadoc | source]
org.apache.bsf.engines.javascript
public class: RhinoEngineDebugger [javadoc | source]
java.lang.Object
   org.apache.bsf.engines.javascript.RhinoEngineDebugger

All Implemented Interfaces:
    Debugger

Field Summary
 BSFDebugManagerImpl dbgmgr     
Constructor:
 public RhinoEngineDebugger(JavaScriptEngine eng) throws RemoteException 
Method from org.apache.bsf.engines.javascript.RhinoEngineDebugger Summary:
_handleBreakpointHit,   addStub,   addStub,   addStub,   disconnectedDebuggerNotify,   dropStub,   eval,   getContext,   getContextCount,   getDebugInterface,   getDebugger,   getDocumentCell,   getGlobalObject,   getRhinoContextProxy,   getStub,   getStub,   getStub,   getThread,   getThreadGroup,   getUndefinedValue,   handleBreakpointHit,   handleCompilationDone,   handleExceptionThrown,   loadDocumentNotify,   marshallProperty,   marshallScriptable,   placeBreakpointAtLine,   placeBreakpointAtOffset,   removeBreakpoint,   run,   setBreakNextLine,   setCompilingFnOrScript,   setDebugger,   setEntryExit,   stepIn,   stepOut,   stepOver
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.bsf.engines.javascript.RhinoEngineDebugger Detail:
 public  void _handleBreakpointHit(DocumentCell cell,
    int lineno) 
  void addStub(Context cx,
    RhinoContextProxy jscx) 
  void addStub(DebugFrame frame,
    JsContextStub stub) 
  void addStub(Scriptable sobj,
    JsObject jsobj) 
 public  void disconnectedDebuggerNotify() 
    Called when our debugger has been disconnected.
  void dropStub(Object key) 
 public Object eval(String docname,
    String fnOrScript,
    int lineno) throws RemoteException 
 public JsContext getContext(int depth) 
 public int getContextCount() 
 public Object getDebugInterface() 
 public JsCallbacks getDebugger() 
    Return the current debugger.
 public synchronized DocumentCell getDocumentCell(String name) 
 public JsObject getGlobalObject() 
 public RhinoContextProxy getRhinoContextProxy() 
 RhinoContextProxy getStub(Context cx) 
 JsContextStub getStub(DebugFrame frame) 
 JsObject getStub(Scriptable sobj) 
 public String getThread() 
 public String getThreadGroup() 
 public JsObject getUndefinedValue() 
 public  void handleBreakpointHit(Context cx) 
 public  void handleCompilationDone(Context cx,
    DebuggableScript fnOrScript,
    StringBuffer source) 
 public  void handleExceptionThrown(Context cx,
    Object exceptionThrown) 
 public synchronized DocumentCell loadDocumentNotify(String name) 
 Object marshallProperty(Object prop) throws RemoteException 
 JsObject marshallScriptable(Scriptable prop) throws RemoteException 
 public synchronized  void placeBreakpointAtLine(int brkptid,
    String docname,
    int lineno) 
 public synchronized  void placeBreakpointAtOffset(int brkptid,
    String docname,
    int offset) 
 public  void removeBreakpoint(String docname,
    int brkptid) throws BSFException 
 public  void run(JsEngineStub eng) throws Exception 
 public  void setBreakNextLine(JsContext context,
    boolean isLineStep) 
    Set whether the engine should break when it encounters the next line.

    The engine will call the attached debugger's handleBreakpointHit method on the next line it executes if isLineStep is true. May be used from another thread to interrupt execution.

  void setCompilingFnOrScript(FnOrScript fnOrScript) 
 public  void setDebugger(JsCallbacks debugger) 
    Set the associated debugger.
 public  void setEntryExit(String docname,
    boolean on) throws BSFException 
 public  void stepIn(JsEngineStub eng) throws Exception 
 public  void stepOut(JsEngineStub eng) throws Exception 
 public  void stepOver(JsEngineStub eng) throws Exception