public class DebugFrameImpl extends DebugFrameAdapter
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.htmlunit.corejs.javascript.debug.DebuggableScript functionOrScript)
Creates a new debug frame.
|
Modifier and Type | Method and Description |
---|---|
void |
onEnter(org.htmlunit.corejs.javascript.Context cx,
org.htmlunit.corejs.javascript.Scriptable activation,
org.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args) |
void |
onExceptionThrown(org.htmlunit.corejs.javascript.Context cx,
Throwable t) |
void |
onLineChange(org.htmlunit.corejs.javascript.Context cx,
int lineNumber) |
onDebuggerStatement, onExit
public DebugFrameImpl(org.htmlunit.corejs.javascript.debug.DebuggableScript functionOrScript)
functionOrScript
- the function or script to which this frame correspondspublic void onEnter(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable activation, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args)
onEnter
in interface org.htmlunit.corejs.javascript.debug.DebugFrame
onEnter
in class DebugFrameAdapter
public void onExceptionThrown(org.htmlunit.corejs.javascript.Context cx, Throwable t)
onExceptionThrown
in interface org.htmlunit.corejs.javascript.debug.DebugFrame
onExceptionThrown
in class DebugFrameAdapter
public void onLineChange(org.htmlunit.corejs.javascript.Context cx, int lineNumber)
onLineChange
in interface org.htmlunit.corejs.javascript.debug.DebugFrame
onLineChange
in class DebugFrameAdapter
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.