| org.mozilla.javascript.debug.DebugFrame
DebugFrame | public interface DebugFrame (Code) | | Interface to implement if the application is interested in receiving debug
information during execution of a particular script or function.
|
Method Summary | |
public void | onDebuggerStatement(Context cx) Called when the function or script executes a 'debugger' statement. | public void | onEnter(Context cx, Scriptable activation, Scriptable thisObj, Object[] args) Called when execution is ready to start bytecode interpretation for entered a particular function or script. | public void | onExceptionThrown(Context cx, Throwable ex) Called when thrown exception is handled by the function or script. | public void | onExit(Context cx, boolean byThrow, Object resultOrException) Called when the function or script for this frame is about to return. | public void | onLineChange(Context cx, int lineNumber) Called when executed code reaches new line in the source. |
onDebuggerStatement | public void onDebuggerStatement(Context cx)(Code) | | Called when the function or script executes a 'debugger' statement.
Parameters: cx - current Context for this thread |
onEnter | public void onEnter(Context cx, Scriptable activation, Scriptable thisObj, Object[] args)(Code) | | Called when execution is ready to start bytecode interpretation for entered a particular function or script.
Parameters: cx - current Context for this thread Parameters: activation - the activation scope for the function or script. Parameters: thisObj - value of the JavaScript this object Parameters: args - the array of arguments |
onExceptionThrown | public void onExceptionThrown(Context cx, Throwable ex)(Code) | | Called when thrown exception is handled by the function or script.
Parameters: cx - current Context for this thread Parameters: ex - exception object |
onExit | public void onExit(Context cx, boolean byThrow, Object resultOrException)(Code) | | Called when the function or script for this frame is about to return.
Parameters: cx - current Context for this thread Parameters: byThrow - if true function will leave by throwing exception, otherwise itwill execute normal return Parameters: resultOrException - function result in case of normal return orexception object if about to throw exception |
onLineChange | public void onLineChange(Context cx, int lineNumber)(Code) | | Called when executed code reaches new line in the source.
Parameters: cx - current Context for this thread Parameters: lineNumber - current line number in the script source |
|
|