public class DebugFrameImpl extends Object implements org.mozilla.javascript.debug.DebugFrame
HtmlUnit's implementation of the DebugFrame interface, which logs stack entries as well
as exceptions. All logging is done at the TRACE level. This class does a fairly good
job of guessing names for anonymous functions when they are referenced by name from an existing
object. See the Rhino
documentation or the
interface source code for more information on the DebugFrame interface and its uses.
Please note that this class is intended mainly to aid in the debugging and development of HtmlUnit itself, rather than the debugging and development of web applications.
DebuggerImpl| Constructor and Description |
|---|
DebugFrameImpl(org.mozilla.javascript.debug.DebuggableScript functionOrScript)
Creates a new debug frame.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onDebuggerStatement(org.mozilla.javascript.Context cx) |
void |
onEnter(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable activation,
org.mozilla.javascript.Scriptable thisObj,
Object[] args) |
void |
onExceptionThrown(org.mozilla.javascript.Context cx,
Throwable t) |
void |
onExit(org.mozilla.javascript.Context cx,
boolean byThrow,
Object resultOrException) |
void |
onLineChange(org.mozilla.javascript.Context cx,
int lineNumber) |
public DebugFrameImpl(org.mozilla.javascript.debug.DebuggableScript functionOrScript)
functionOrScript - the function or script to which this frame correspondspublic void onDebuggerStatement(org.mozilla.javascript.Context cx)
public void onEnter(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable activation,
org.mozilla.javascript.Scriptable thisObj,
Object[] args)
onEnter in interface org.mozilla.javascript.debug.DebugFramepublic void onExceptionThrown(org.mozilla.javascript.Context cx,
Throwable t)
onExceptionThrown in interface org.mozilla.javascript.debug.DebugFramepublic void onExit(org.mozilla.javascript.Context cx,
boolean byThrow,
Object resultOrException)
onExit in interface org.mozilla.javascript.debug.DebugFramepublic void onLineChange(org.mozilla.javascript.Context cx,
int lineNumber)
onLineChange in interface org.mozilla.javascript.debug.DebugFrameCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.