public class JavaScriptDebugger extends Object implements net.sourceforge.htmlunit.corejs.javascript.debug.Debugger
When you set a break point in Java code that are directly/indirectly invoked through JavaScript,
use toString() to see the JavaScript stack trace (and variables at each stack frame.)
This helps you see where the problem is.
TODO: add programmatic break point API, selective method invocation tracing, and allow arbitrary script evaluation in arbitrary stack frame.
HudsonTestCase.jsDebugger| Constructor and Description |
|---|
JavaScriptDebugger() |
| Modifier and Type | Method and Description |
|---|---|
net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame |
getFrame(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableScript fnOrScript) |
void |
handleCompilationDone(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableScript fnOrScript,
String source) |
String |
toString()
Formats the current call stack into a human readable string.
|
public void handleCompilationDone(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableScript fnOrScript,
String source)
handleCompilationDone in interface net.sourceforge.htmlunit.corejs.javascript.debug.Debuggerpublic net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame getFrame(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableScript fnOrScript)
getFrame in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebuggerCopyright © 2004-2014. All Rights Reserved.