org.apache.bsf.engines.javascript
public class RhinoEngineDebugger extends Object implements Debugger
Constructor Summary | |
---|---|
RhinoEngineDebugger(JavaScriptEngine eng) |
Method Summary | |
---|---|
void | disconnectedDebuggerNotify()
Called when our debugger has been disconnected. |
Object | eval(String docname, String fnOrScript, int lineno) |
JsContext | getContext(int depth) |
int | getContextCount() |
JsCallbacks | getDebugger()
Return the current debugger. |
Object | getDebugInterface() |
DocumentCell | getDocumentCell(String name) |
JsObject | getGlobalObject() |
RhinoContextProxy | getRhinoContextProxy() |
String | getThread() |
String | getThreadGroup() |
JsObject | getUndefinedValue() |
void | handleBreakpointHit(Context cx) |
void | handleCompilationDone(Context cx, DebuggableScript fnOrScript, StringBuffer source) |
void | handleExceptionThrown(Context cx, Object exceptionThrown) |
DocumentCell | loadDocumentNotify(String name) |
void | placeBreakpointAtLine(int brkptid, String docname, int lineno) |
void | placeBreakpointAtOffset(int brkptid, String docname, int offset) |
void | removeBreakpoint(String docname, int brkptid) |
void | run(JsEngineStub eng) |
void | setBreakNextLine(JsContext context, boolean isLineStep)
Set whether the engine should break when it encounters
the next line.
|
void | setDebugger(JsCallbacks debugger)
Set the associated debugger. |
void | setEntryExit(String docname, boolean on) |
void | stepIn(JsEngineStub eng) |
void | stepOut(JsEngineStub eng) |
void | stepOver(JsEngineStub eng) |
void | _handleBreakpointHit(DocumentCell cell, int lineno) |
Returns: the debugger, or null if none is attached.
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.
Parameters: isLineStep if true, break next line
Parameters: debugger the debugger to be used on callbacks from the engine.