com.gargoylesoftware.htmlunit.javascript
Class DebuggerImpl

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.DebuggerImpl
All Implemented Interfaces:
org.mozilla.javascript.debug.Debugger

public class DebuggerImpl
extends java.lang.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.

Version:
$Revision: 1.3 $
Author:
Daniel Gredler
See Also:
DebugFrameImpl, HtmlUnitContextFactory.setDebuggerEnabled(boolean)

Constructor Summary
DebuggerImpl()
  
 
Method Summary
 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, java.lang.String source)
 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebuggerImpl

public DebuggerImpl()
Method Detail

getFrame

public org.mozilla.javascript.debug.DebugFrame getFrame(org.mozilla.javascript.Context cx,
                                                        org.mozilla.javascript.debug.DebuggableScript functionOrScript)

Specified by:
getFrame in interface org.mozilla.javascript.debug.Debugger

handleCompilationDone

public void handleCompilationDone(org.mozilla.javascript.Context cx,
                                  org.mozilla.javascript.debug.DebuggableScript functionOrScript,
                                  java.lang.String source)

Specified by:
handleCompilationDone in interface org.mozilla.javascript.debug.Debugger


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.