Class DebuggerImpl

java.lang.Object
org.htmlunit.javascript.DebuggerAdapter
org.htmlunit.javascript.DebuggerImpl
All Implemented Interfaces:
org.htmlunit.corejs.javascript.debug.Debugger

public class DebuggerImpl extends DebuggerAdapter

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 info 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.setDebugger(org.htmlunit.corejs.javascript.debug.Debugger), passing in an instance of this class, and make sure your loggers are configured to output TRACE level log messages.

See Also:
  • Constructor Details

    • DebuggerImpl

      public DebuggerImpl()
  • Method Details

    • getFrame

      public org.htmlunit.corejs.javascript.debug.DebugFrame getFrame(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.debug.DebuggableScript functionOrScript)
      Specified by:
      getFrame in interface org.htmlunit.corejs.javascript.debug.Debugger
      Overrides:
      getFrame in class DebuggerAdapter