com.gargoylesoftware.htmlunit.javascript
Class DebugFrameImpl

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.DebugFrameAdapter
      extended by com.gargoylesoftware.htmlunit.javascript.DebugFrameImpl
All Implemented Interfaces:
net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame

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.

Version:
$Revision: 5864 $
Author:
Daniel Gredler, Marc Guillemot
See Also:
DebuggerImpl

Constructor Summary
DebugFrameImpl(net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableScript functionOrScript)
          Creates a new debug frame.
 
Method Summary
 void onEnter(net.sourceforge.htmlunit.corejs.javascript.Context cx, net.sourceforge.htmlunit.corejs.javascript.Scriptable activation, net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args)
          
 void onExceptionThrown(net.sourceforge.htmlunit.corejs.javascript.Context cx, Throwable t)
          
 void onLineChange(net.sourceforge.htmlunit.corejs.javascript.Context cx, int lineNumber)
          
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.DebugFrameAdapter
onDebuggerStatement, onExit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugFrameImpl

public DebugFrameImpl(net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableScript functionOrScript)
Creates a new debug frame.

Parameters:
functionOrScript - the function or script to which this frame corresponds
Method Detail

onEnter

public void onEnter(net.sourceforge.htmlunit.corejs.javascript.Context cx,
                    net.sourceforge.htmlunit.corejs.javascript.Scriptable activation,
                    net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
                    Object[] args)

Specified by:
onEnter in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame
Overrides:
onEnter in class DebugFrameAdapter

onExceptionThrown

public void onExceptionThrown(net.sourceforge.htmlunit.corejs.javascript.Context cx,
                              Throwable t)

Specified by:
onExceptionThrown in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame
Overrides:
onExceptionThrown in class DebugFrameAdapter

onLineChange

public void onLineChange(net.sourceforge.htmlunit.corejs.javascript.Context cx,
                         int lineNumber)

Specified by:
onLineChange in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame
Overrides:
onLineChange in class DebugFrameAdapter


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.