org.apache.bsf.debug.jsdi

Interface JsCallbacks

public interface JsCallbacks extends RemoteService

This interface is the callback for the JavaScript debugger. IMPORTANT: JASON: it is likely to be modified when moving to the JDI-like event listening framework. IMPORTANT TWO: Missing support for watching objects.

UNKNOWN: Olivier Gruber

Method Summary
voidhandleBreakpointHit(JsContext cx)
Callback when a breakpoint is hit in the debuggee.
voidhandleEngineStopped(JsContext cx)
Callback when an engine stops after a stop-request.
voidhandleExceptionThrown(JsContext cx, Object exception)
Callback when an exception is thrown in the debuggee.
voidhandleSteppingDone(JsContext cx)
Callback when a step-request has finished.
booleanpoll()
Allows the server to poll the connection.

Method Detail

handleBreakpointHit

public void handleBreakpointHit(JsContext cx)
Callback when a breakpoint is hit in the debuggee. The debuggee is suspended until this call returns.

handleEngineStopped

public void handleEngineStopped(JsContext cx)
Callback when an engine stops after a stop-request. The debuggee is suspended until this call returns.

handleExceptionThrown

public void handleExceptionThrown(JsContext cx, Object exception)
Callback when an exception is thrown in the debuggee. The debuggee is suspended until this call returns.

handleSteppingDone

public void handleSteppingDone(JsContext cx)
Callback when a step-request has finished. The debuggee is suspended until this call returns.

poll

public boolean poll()
Allows the server to poll the connection.