public class RhinoEngineDebugger
extends java.lang.Object
implements org.mozilla.javascript.debug.Debugger
| Constructor and Description |
|---|
RhinoEngineDebugger(JavaScriptEngine eng) |
| Modifier and Type | Method and Description |
|---|---|
void |
_handleBreakpointHit(DocumentCell cell,
int lineno) |
void |
disconnectedDebuggerNotify()
Called when our debugger has been disconnected.
|
java.lang.Object |
eval(java.lang.String docname,
java.lang.String fnOrScript,
int lineno) |
JsContext |
getContext(int depth) |
int |
getContextCount() |
JsCallbacks |
getDebugger()
Return the current debugger.
|
java.lang.Object |
getDebugInterface() |
DocumentCell |
getDocumentCell(java.lang.String name) |
JsObject |
getGlobalObject() |
RhinoContextProxy |
getRhinoContextProxy() |
java.lang.String |
getThread() |
java.lang.String |
getThreadGroup() |
JsObject |
getUndefinedValue() |
void |
handleBreakpointHit(org.mozilla.javascript.Context cx) |
void |
handleCompilationDone(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript fnOrScript,
java.lang.StringBuffer source) |
void |
handleExceptionThrown(org.mozilla.javascript.Context cx,
java.lang.Object exceptionThrown) |
DocumentCell |
loadDocumentNotify(java.lang.String name) |
void |
placeBreakpointAtLine(int brkptid,
java.lang.String docname,
int lineno) |
void |
placeBreakpointAtOffset(int brkptid,
java.lang.String docname,
int offset) |
void |
removeBreakpoint(java.lang.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(java.lang.String docname,
boolean on) |
void |
stepIn(JsEngineStub eng) |
void |
stepOut(JsEngineStub eng) |
void |
stepOver(JsEngineStub eng) |
public RhinoEngineDebugger(JavaScriptEngine eng) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void disconnectedDebuggerNotify()
public DocumentCell getDocumentCell(java.lang.String name)
public DocumentCell loadDocumentNotify(java.lang.String name)
public void placeBreakpointAtLine(int brkptid,
java.lang.String docname,
int lineno)
public void placeBreakpointAtOffset(int brkptid,
java.lang.String docname,
int offset)
public void removeBreakpoint(java.lang.String docname,
int brkptid)
throws BSFException
BSFExceptionpublic void setEntryExit(java.lang.String docname,
boolean on)
throws BSFException
BSFExceptionpublic java.lang.Object eval(java.lang.String docname,
java.lang.String fnOrScript,
int lineno)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic JsContext getContext(int depth)
public int getContextCount()
public JsCallbacks getDebugger()
public java.lang.Object getDebugInterface()
public JsObject getGlobalObject()
public RhinoContextProxy getRhinoContextProxy()
public JsObject getUndefinedValue()
public java.lang.String getThread()
public java.lang.String getThreadGroup()
public void handleBreakpointHit(org.mozilla.javascript.Context cx)
public void _handleBreakpointHit(DocumentCell cell, int lineno)
public void run(JsEngineStub eng) throws java.lang.Exception
java.lang.Exceptionpublic void stepIn(JsEngineStub eng) throws java.lang.Exception
java.lang.Exceptionpublic void stepOut(JsEngineStub eng) throws java.lang.Exception
java.lang.Exceptionpublic void stepOver(JsEngineStub eng) throws java.lang.Exception
java.lang.Exceptionpublic void handleCompilationDone(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript fnOrScript,
java.lang.StringBuffer source)
public void handleExceptionThrown(org.mozilla.javascript.Context cx,
java.lang.Object exceptionThrown)
public void setBreakNextLine(JsContext context, boolean isLineStep)
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.
isLineStep - if true, break next linepublic void setDebugger(JsCallbacks debugger)
debugger - the debugger to be used on callbacks from
the engine.