Package org.ringojs.util
Class DebuggerBase
- java.lang.Object
-
- org.ringojs.util.DebuggerBase
-
- All Implemented Interfaces:
org.mozilla.javascript.debug.Debugger
public abstract class DebuggerBase extends java.lang.Object implements org.mozilla.javascript.debug.Debugger
A base class for Debuggers and Profilers implemented in Javascript. This allows to exclude the debugger/profiler module and all modules it uses to be excluded from debugging/profiling.
-
-
Constructor Summary
Constructors Constructor Description DebuggerBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
attach()
void
attach(java.lang.Object contextData)
abstract java.lang.Object
createContextData()
abstract DebuggerBase
createDebugger()
void
detach()
java.lang.Object
getContextData()
org.mozilla.javascript.debug.DebugFrame
getFrame(org.mozilla.javascript.Context cx, org.mozilla.javascript.debug.DebuggableScript fnOrScript)
abstract org.mozilla.javascript.debug.DebugFrame
getScriptFrame(org.mozilla.javascript.Context cx, org.mozilla.javascript.debug.DebuggableScript fnOrScript)
abstract void
handleCompilationDone(org.mozilla.javascript.Context cx, org.mozilla.javascript.debug.DebuggableScript fnOrScript, java.lang.String source)
void
install()
void
resume()
void
setDebuggerScript(java.lang.String path)
void
suspend()
-
-
-
Method Detail
-
createDebugger
public abstract DebuggerBase createDebugger()
-
createContextData
public abstract java.lang.Object createContextData()
-
handleCompilationDone
public abstract void handleCompilationDone(org.mozilla.javascript.Context cx, org.mozilla.javascript.debug.DebuggableScript fnOrScript, java.lang.String source)
- Specified by:
handleCompilationDone
in interfaceorg.mozilla.javascript.debug.Debugger
-
getScriptFrame
public abstract org.mozilla.javascript.debug.DebugFrame getScriptFrame(org.mozilla.javascript.Context cx, org.mozilla.javascript.debug.DebuggableScript fnOrScript)
-
attach
public void attach()
-
setDebuggerScript
public void setDebuggerScript(java.lang.String path)
-
install
public void install()
-
attach
public void attach(java.lang.Object contextData)
-
detach
public void detach()
-
getContextData
public java.lang.Object getContextData()
-
suspend
public void suspend()
-
resume
public void resume()
-
getFrame
public org.mozilla.javascript.debug.DebugFrame getFrame(org.mozilla.javascript.Context cx, org.mozilla.javascript.debug.DebuggableScript fnOrScript)
- Specified by:
getFrame
in interfaceorg.mozilla.javascript.debug.Debugger
-
-