public class DebuggerImpl extends Object implements org.mozilla.javascript.debug.Debugger
HtmlUnit's implementation of the Debugger
interface, which registers
DebugFrameImpl
instances with Rhino for each new execution frame created. See the Rhino documentation or the
interface source code for more information on the Debugger
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.
In order to enable the debugging output, call
HtmlUnitContextFactory.setDebuggerEnabled(boolean)
, and make sure your loggers are
configured to output TRACE level log messages.
DebugFrameImpl
,
HtmlUnitContextFactory.setDebuggerEnabled(boolean)
Constructor and Description |
---|
DebuggerImpl() |
Modifier and Type | Method and Description |
---|---|
org.mozilla.javascript.debug.DebugFrame |
getFrame(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript functionOrScript) |
void |
handleCompilationDone(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript functionOrScript,
String source) |
public org.mozilla.javascript.debug.DebugFrame getFrame(org.mozilla.javascript.Context cx, org.mozilla.javascript.debug.DebuggableScript functionOrScript)
getFrame
in interface org.mozilla.javascript.debug.Debugger
public void handleCompilationDone(org.mozilla.javascript.Context cx, org.mozilla.javascript.debug.DebuggableScript functionOrScript, String source)
handleCompilationDone
in interface org.mozilla.javascript.debug.Debugger
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.