Class DebugFrameImpl
java.lang.Object
org.htmlunit.javascript.DebugFrameAdapter
org.htmlunit.javascript.DebugFrameImpl
- All Implemented Interfaces:
org.htmlunit.corejs.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.
- Author:
- Daniel Gredler, Marc Guillemot
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDebugFrameImpl(org.htmlunit.corejs.javascript.debug.DebuggableScript functionOrScript) Creates a new debug frame. -
Method Summary
Modifier and TypeMethodDescriptionvoidonEnter(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable activation, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args) voidonExceptionThrown(org.htmlunit.corejs.javascript.Context cx, Throwable t) voidonLineChange(org.htmlunit.corejs.javascript.Context cx, int lineNumber) Methods inherited from class DebugFrameAdapter
onDebuggerStatement, onExit
-
Constructor Details
-
DebugFrameImpl
public DebugFrameImpl(org.htmlunit.corejs.javascript.debug.DebuggableScript functionOrScript) Creates a new debug frame.- Parameters:
functionOrScript- the function or script to which this frame corresponds
-
-
Method Details
-
onEnter
public void onEnter(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable activation, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args) - Specified by:
onEnterin interfaceorg.htmlunit.corejs.javascript.debug.DebugFrame- Overrides:
onEnterin classDebugFrameAdapter
-
onExceptionThrown
- Specified by:
onExceptionThrownin interfaceorg.htmlunit.corejs.javascript.debug.DebugFrame- Overrides:
onExceptionThrownin classDebugFrameAdapter
-
onLineChange
public void onLineChange(org.htmlunit.corejs.javascript.Context cx, int lineNumber) - Specified by:
onLineChangein interfaceorg.htmlunit.corejs.javascript.debug.DebugFrame- Overrides:
onLineChangein classDebugFrameAdapter
-