_handleBreakpointHit
public void _handleBreakpointHit(DocumentCell cell,
int lineno)
disconnectedDebuggerNotify
public void disconnectedDebuggerNotify()
Called when our debugger has been disconnected.
eval
public Object eval(String docname,
String fnOrScript,
int lineno)
throws RemoteException
getContext
public JsContext getContext(int depth)
getContextCount
public int getContextCount()
getDebugInterface
public Object getDebugInterface()
getDebugger
public JsCallbacks getDebugger()
Return the current debugger.
- the debugger, or null if none is attached.
getDocumentCell
public DocumentCell getDocumentCell(String name)
getGlobalObject
public JsObject getGlobalObject()
getThread
public String getThread()
getThreadGroup
public String getThreadGroup()
getUndefinedValue
public JsObject getUndefinedValue()
handleBreakpointHit
public void handleBreakpointHit(Context cx)
handleCompilationDone
public void handleCompilationDone(Context cx,
DebuggableScript fnOrScript,
StringBuffer source)
handleExceptionThrown
public void handleExceptionThrown(Context cx,
Object exceptionThrown)
loadDocumentNotify
public DocumentCell loadDocumentNotify(String name)
placeBreakpointAtLine
public void placeBreakpointAtLine(int brkptid,
String docname,
int lineno)
placeBreakpointAtOffset
public void placeBreakpointAtOffset(int brkptid,
String docname,
int offset)
removeBreakpoint
public void removeBreakpoint(String docname,
int brkptid)
throws BSFException
setBreakNextLine
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.
isLineStep
- if true, break next line
setDebugger
public void setDebugger(JsCallbacks debugger)
Set the associated debugger.
debugger
- the debugger to be used on callbacks from
the engine.
setEntryExit
public void setEntryExit(String docname,
boolean on)
throws BSFException
stepOut
public void stepOut(JsEngineStub eng)
throws Exception
stepOver
public void stepOver(JsEngineStub eng)
throws Exception