webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
JSC::Debugger Class Referenceabstract

#include <Debugger.h>

Inheritance diagram for JSC::Debugger:
Inspector::ScriptDebugServer Inspector::ScriptDebugServer WebScriptDebugger Inspector::JSGlobalObjectScriptDebugServer WebCore::PageScriptDebugServer WebCore::PageScriptDebugServer WebCore::WorkerScriptDebugServer Inspector::JSGlobalObjectScriptDebugServer WebCore::PageScriptDebugServer WebCore::PageScriptDebugServer WebCore::WorkerScriptDebugServer

Classes

class  ClearCodeBlockDebuggerRequestsFunctor
 
class  ClearDebuggerRequestsFunctor
 
class  ProfilingClient
 
class  SetSteppingModeFunctor
 
class  ToggleBreakpointFunctor
 

Public Types

enum  ReasonForDetach { TerminatingDebuggingSession, GlobalObjectIsDestructing, TerminatingDebuggingSession, GlobalObjectIsDestructing }
 
enum  PauseOnExceptionsState {
  DontPauseOnExceptions, PauseOnAllExceptions, PauseOnUncaughtExceptions, DontPauseOnExceptions,
  PauseOnAllExceptions, PauseOnUncaughtExceptions
}
 
enum  ReasonForPause {
  NotPaused, PausedForException, PausedAtStatement, PausedAtExpression,
  PausedBeforeReturn, PausedAtEndOfProgram, PausedForBreakpoint, PausedForDebuggerStatement,
  NotPaused, PausedForException, PausedAtStatement, PausedAtExpression,
  PausedBeforeReturn, PausedAtEndOfProgram, PausedForBreakpoint, PausedForDebuggerStatement
}
 
enum  ReasonForDetach { TerminatingDebuggingSession, GlobalObjectIsDestructing, TerminatingDebuggingSession, GlobalObjectIsDestructing }
 
enum  PauseOnExceptionsState {
  DontPauseOnExceptions, PauseOnAllExceptions, PauseOnUncaughtExceptions, DontPauseOnExceptions,
  PauseOnAllExceptions, PauseOnUncaughtExceptions
}
 
enum  ReasonForPause {
  NotPaused, PausedForException, PausedAtStatement, PausedAtExpression,
  PausedBeforeReturn, PausedAtEndOfProgram, PausedForBreakpoint, PausedForDebuggerStatement,
  NotPaused, PausedForException, PausedAtStatement, PausedAtExpression,
  PausedBeforeReturn, PausedAtEndOfProgram, PausedForBreakpoint, PausedForDebuggerStatement
}
 

Public Member Functions

 Debugger (VM &)
 
virtual ~Debugger ()
 
VMvm ()
 
JSC::DebuggerCallFramecurrentDebuggerCallFrame ()
 
bool hasHandlerForExceptionCallback () const
 
JSValue currentException ()
 
bool needsExceptionCallbacks () const
 
bool isInteractivelyDebugging () const
 
void attach (JSGlobalObject *)
 
void detach (JSGlobalObject *, ReasonForDetach)
 
bool isAttached (JSGlobalObject *)
 
void resolveBreakpoint (Breakpoint &, SourceProvider *)
 
BreakpointID setBreakpoint (Breakpoint &, bool &existing)
 
void removeBreakpoint (BreakpointID)
 
void clearBreakpoints ()
 
void activateBreakpoints ()
 
void deactivateBreakpoints ()
 
bool breakpointsActive () const
 
PauseOnExceptionsState pauseOnExceptionsState () const
 
void setPauseOnExceptionsState (PauseOnExceptionsState)
 
ReasonForPause reasonForPause () const
 
BreakpointID pausingBreakpointID () const
 
void setPauseOnNextStatement (bool)
 
void breakProgram ()
 
void continueProgram ()
 
void stepIntoStatement ()
 
void stepOverStatement ()
 
void stepOutOfFunction ()
 
bool isBlacklisted (SourceID) const
 
void addToBlacklist (SourceID)
 
void clearBlacklist ()
 
bool isPaused () const
 
bool isStepping () const
 
bool suppressAllPauses () const
 
void setSuppressAllPauses (bool suppress)
 
virtual void sourceParsed (ExecState *, SourceProvider *, int errorLineNumber, const WTF::String &errorMessage)=0
 
void exception (CallFrame *, JSValue exceptionValue, bool hasCatchHandler)
 
void atStatement (CallFrame *)
 
void atExpression (CallFrame *)
 
void callEvent (CallFrame *)
 
void returnEvent (CallFrame *)
 
void unwindEvent (CallFrame *)
 
void willExecuteProgram (CallFrame *)
 
void didExecuteProgram (CallFrame *)
 
void didReachBreakpoint (CallFrame *)
 
virtual void recompileAllJSFunctions ()
 
void registerCodeBlock (CodeBlock *)
 
void setProfilingClient (ProfilingClient *)
 
bool hasProfilingClient () const
 
bool isAlreadyProfiling () const
 
double willEvaluateScript ()
 
void didEvaluateScript (double startTime, ProfilingReason)
 
 Debugger (VM &)
 
virtual ~Debugger ()
 
VMvm ()
 
JSC::DebuggerCallFramecurrentDebuggerCallFrame ()
 
bool hasHandlerForExceptionCallback () const
 
JSValue currentException ()
 
bool needsExceptionCallbacks () const
 
bool isInteractivelyDebugging () const
 
void attach (JSGlobalObject *)
 
void detach (JSGlobalObject *, ReasonForDetach)
 
bool isAttached (JSGlobalObject *)
 
void resolveBreakpoint (Breakpoint &, SourceProvider *)
 
BreakpointID setBreakpoint (Breakpoint &, bool &existing)
 
void removeBreakpoint (BreakpointID)
 
void clearBreakpoints ()
 
void activateBreakpoints ()
 
void deactivateBreakpoints ()
 
bool breakpointsActive () const
 
PauseOnExceptionsState pauseOnExceptionsState () const
 
void setPauseOnExceptionsState (PauseOnExceptionsState)
 
ReasonForPause reasonForPause () const
 
BreakpointID pausingBreakpointID () const
 
void setPauseOnNextStatement (bool)
 
void breakProgram ()
 
void continueProgram ()
 
void stepIntoStatement ()
 
void stepOverStatement ()
 
void stepOutOfFunction ()
 
bool isBlacklisted (SourceID) const
 
void addToBlacklist (SourceID)
 
void clearBlacklist ()
 
bool isPaused () const
 
bool isStepping () const
 
bool suppressAllPauses () const
 
void setSuppressAllPauses (bool suppress)
 
virtual void sourceParsed (ExecState *, SourceProvider *, int errorLineNumber, const WTF::String &errorMessage)=0
 
void exception (CallFrame *, JSValue exceptionValue, bool hasCatchHandler)
 
void atStatement (CallFrame *)
 
void atExpression (CallFrame *)
 
void callEvent (CallFrame *)
 
void returnEvent (CallFrame *)
 
void unwindEvent (CallFrame *)
 
void willExecuteProgram (CallFrame *)
 
void didExecuteProgram (CallFrame *)
 
void didReachBreakpoint (CallFrame *)
 
virtual void recompileAllJSFunctions ()
 
void registerCodeBlock (CodeBlock *)
 
void setProfilingClient (ProfilingClient *)
 
bool hasProfilingClient () const
 
bool isAlreadyProfiling () const
 
double willEvaluateScript ()
 
void didEvaluateScript (double startTime, ProfilingReason)
 

Protected Member Functions

virtual void handleBreakpointHit (JSGlobalObject *, const Breakpoint &)
 
virtual void handleExceptionInBreakpointCondition (ExecState *, Exception *) const
 
virtual void handlePause (JSGlobalObject *, ReasonForPause)
 
virtual void notifyDoneProcessingDebuggerEvents ()
 
virtual void handleBreakpointHit (JSGlobalObject *, const Breakpoint &)
 
virtual void handleExceptionInBreakpointCondition (ExecState *, Exception *) const
 
virtual void handlePause (JSGlobalObject *, ReasonForPause)
 
virtual void notifyDoneProcessingDebuggerEvents ()
 

Friends

class DebuggerPausedScope
 
class TemporaryPausedState
 
class LLIntOffsetsExtractor
 

Member Enumeration Documentation

◆ PauseOnExceptionsState [1/2]

Enumerator
DontPauseOnExceptions 
PauseOnAllExceptions 
PauseOnUncaughtExceptions 
DontPauseOnExceptions 
PauseOnAllExceptions 
PauseOnUncaughtExceptions 

◆ PauseOnExceptionsState [2/2]

Enumerator
DontPauseOnExceptions 
PauseOnAllExceptions 
PauseOnUncaughtExceptions 
DontPauseOnExceptions 
PauseOnAllExceptions 
PauseOnUncaughtExceptions 

◆ ReasonForDetach [1/2]

Enumerator
TerminatingDebuggingSession 
GlobalObjectIsDestructing 
TerminatingDebuggingSession 
GlobalObjectIsDestructing 

◆ ReasonForDetach [2/2]

Enumerator
TerminatingDebuggingSession 
GlobalObjectIsDestructing 
TerminatingDebuggingSession 
GlobalObjectIsDestructing 

◆ ReasonForPause [1/2]

Enumerator
NotPaused 
PausedForException 
PausedAtStatement 
PausedAtExpression 
PausedBeforeReturn 
PausedAtEndOfProgram 
PausedForBreakpoint 
PausedForDebuggerStatement 
NotPaused 
PausedForException 
PausedAtStatement 
PausedAtExpression 
PausedBeforeReturn 
PausedAtEndOfProgram 
PausedForBreakpoint 
PausedForDebuggerStatement 

◆ ReasonForPause [2/2]

Enumerator
NotPaused 
PausedForException 
PausedAtStatement 
PausedAtExpression 
PausedBeforeReturn 
PausedAtEndOfProgram 
PausedForBreakpoint 
PausedForDebuggerStatement 
NotPaused 
PausedForException 
PausedAtStatement 
PausedAtExpression 
PausedBeforeReturn 
PausedAtEndOfProgram 
PausedForBreakpoint 
PausedForDebuggerStatement 

Constructor & Destructor Documentation

◆ Debugger() [1/2]

JSC::Debugger::Debugger ( VM vm)

◆ ~Debugger() [1/2]

JSC::Debugger::~Debugger ( )
virtual

◆ Debugger() [2/2]

JSC::Debugger::Debugger ( VM )

◆ ~Debugger() [2/2]

virtual JSC::Debugger::~Debugger ( )
virtual

Member Function Documentation

◆ activateBreakpoints() [1/2]

void JSC::Debugger::activateBreakpoints ( )
inline

◆ activateBreakpoints() [2/2]

void JSC::Debugger::activateBreakpoints ( )
inline

◆ addToBlacklist() [1/2]

void JSC::Debugger::addToBlacklist ( SourceID  )

◆ addToBlacklist() [2/2]

void JSC::Debugger::addToBlacklist ( SourceID  sourceID)

◆ atExpression() [1/2]

void JSC::Debugger::atExpression ( CallFrame callFrame)

◆ atExpression() [2/2]

void JSC::Debugger::atExpression ( CallFrame )

◆ atStatement() [1/2]

void JSC::Debugger::atStatement ( CallFrame callFrame)

◆ atStatement() [2/2]

void JSC::Debugger::atStatement ( CallFrame )

◆ attach() [1/2]

void JSC::Debugger::attach ( JSGlobalObject globalObject)

◆ attach() [2/2]

void JSC::Debugger::attach ( JSGlobalObject )

◆ breakpointsActive() [1/2]

bool JSC::Debugger::breakpointsActive ( ) const
inline

◆ breakpointsActive() [2/2]

bool JSC::Debugger::breakpointsActive ( ) const
inline

◆ breakProgram() [1/2]

void JSC::Debugger::breakProgram ( )

◆ breakProgram() [2/2]

void JSC::Debugger::breakProgram ( )

◆ callEvent() [1/2]

void JSC::Debugger::callEvent ( CallFrame callFrame)

◆ callEvent() [2/2]

void JSC::Debugger::callEvent ( CallFrame )

◆ clearBlacklist() [1/2]

void JSC::Debugger::clearBlacklist ( )

◆ clearBlacklist() [2/2]

void JSC::Debugger::clearBlacklist ( )

◆ clearBreakpoints() [1/2]

void JSC::Debugger::clearBreakpoints ( )

◆ clearBreakpoints() [2/2]

void JSC::Debugger::clearBreakpoints ( )

◆ continueProgram() [1/2]

void JSC::Debugger::continueProgram ( )

◆ continueProgram() [2/2]

void JSC::Debugger::continueProgram ( )

◆ currentDebuggerCallFrame() [1/2]

DebuggerCallFrame & JSC::Debugger::currentDebuggerCallFrame ( )

◆ currentDebuggerCallFrame() [2/2]

JSC::DebuggerCallFrame& JSC::Debugger::currentDebuggerCallFrame ( )

◆ currentException() [1/2]

JSValue JSC::Debugger::currentException ( )
inline

◆ currentException() [2/2]

JSValue JSC::Debugger::currentException ( )
inline

◆ deactivateBreakpoints() [1/2]

void JSC::Debugger::deactivateBreakpoints ( )
inline

◆ deactivateBreakpoints() [2/2]

void JSC::Debugger::deactivateBreakpoints ( )
inline

◆ detach() [1/2]

void JSC::Debugger::detach ( JSGlobalObject globalObject,
ReasonForDetach  reason 
)

◆ detach() [2/2]

void JSC::Debugger::detach ( JSGlobalObject ,
ReasonForDetach   
)

◆ didEvaluateScript() [1/2]

void JSC::Debugger::didEvaluateScript ( double  startTime,
ProfilingReason  reason 
)

◆ didEvaluateScript() [2/2]

void JSC::Debugger::didEvaluateScript ( double  startTime,
ProfilingReason   
)

◆ didExecuteProgram() [1/2]

void JSC::Debugger::didExecuteProgram ( CallFrame callFrame)

◆ didExecuteProgram() [2/2]

void JSC::Debugger::didExecuteProgram ( CallFrame )

◆ didReachBreakpoint() [1/2]

void JSC::Debugger::didReachBreakpoint ( CallFrame callFrame)

◆ didReachBreakpoint() [2/2]

void JSC::Debugger::didReachBreakpoint ( CallFrame )

◆ exception() [1/2]

void JSC::Debugger::exception ( CallFrame callFrame,
JSValue  exceptionValue,
bool  hasCatchHandler 
)

◆ exception() [2/2]

void JSC::Debugger::exception ( CallFrame ,
JSValue  exceptionValue,
bool  hasCatchHandler 
)

◆ handleBreakpointHit() [1/2]

virtual void JSC::Debugger::handleBreakpointHit ( JSGlobalObject ,
const Breakpoint  
)
inlineprotectedvirtual

◆ handleBreakpointHit() [2/2]

virtual void JSC::Debugger::handleBreakpointHit ( JSGlobalObject ,
const Breakpoint  
)
inlineprotectedvirtual

◆ handleExceptionInBreakpointCondition() [1/2]

virtual void JSC::Debugger::handleExceptionInBreakpointCondition ( ExecState ,
Exception  
) const
inlineprotectedvirtual

◆ handleExceptionInBreakpointCondition() [2/2]

virtual void JSC::Debugger::handleExceptionInBreakpointCondition ( ExecState ,
Exception  
) const
inlineprotectedvirtual

◆ handlePause() [1/2]

virtual void JSC::Debugger::handlePause ( JSGlobalObject ,
ReasonForPause   
)
inlineprotectedvirtual

◆ handlePause() [2/2]

virtual void JSC::Debugger::handlePause ( JSGlobalObject ,
ReasonForPause   
)
inlineprotectedvirtual

◆ hasHandlerForExceptionCallback() [1/2]

bool JSC::Debugger::hasHandlerForExceptionCallback ( ) const
inline

◆ hasHandlerForExceptionCallback() [2/2]

bool JSC::Debugger::hasHandlerForExceptionCallback ( ) const
inline

◆ hasProfilingClient() [1/2]

bool JSC::Debugger::hasProfilingClient ( ) const
inline

◆ hasProfilingClient() [2/2]

bool JSC::Debugger::hasProfilingClient ( ) const
inline

◆ isAlreadyProfiling() [1/2]

bool JSC::Debugger::isAlreadyProfiling ( ) const
inline

◆ isAlreadyProfiling() [2/2]

bool JSC::Debugger::isAlreadyProfiling ( ) const
inline

◆ isAttached() [1/2]

bool JSC::Debugger::isAttached ( JSGlobalObject globalObject)

◆ isAttached() [2/2]

bool JSC::Debugger::isAttached ( JSGlobalObject )

◆ isBlacklisted() [1/2]

bool JSC::Debugger::isBlacklisted ( SourceID  ) const

◆ isBlacklisted() [2/2]

bool JSC::Debugger::isBlacklisted ( SourceID  sourceID) const

◆ isInteractivelyDebugging() [1/2]

bool JSC::Debugger::isInteractivelyDebugging ( ) const
inline

◆ isInteractivelyDebugging() [2/2]

bool JSC::Debugger::isInteractivelyDebugging ( ) const
inline

◆ isPaused() [1/2]

bool JSC::Debugger::isPaused ( ) const
inline

◆ isPaused() [2/2]

bool JSC::Debugger::isPaused ( ) const
inline

◆ isStepping() [1/2]

bool JSC::Debugger::isStepping ( ) const
inline

◆ isStepping() [2/2]

bool JSC::Debugger::isStepping ( ) const
inline

◆ needsExceptionCallbacks() [1/2]

bool JSC::Debugger::needsExceptionCallbacks ( ) const
inline

◆ needsExceptionCallbacks() [2/2]

bool JSC::Debugger::needsExceptionCallbacks ( ) const
inline

◆ notifyDoneProcessingDebuggerEvents() [1/2]

virtual void JSC::Debugger::notifyDoneProcessingDebuggerEvents ( )
inlineprotectedvirtual

◆ notifyDoneProcessingDebuggerEvents() [2/2]

virtual void JSC::Debugger::notifyDoneProcessingDebuggerEvents ( )
inlineprotectedvirtual

◆ pauseOnExceptionsState() [1/2]

PauseOnExceptionsState JSC::Debugger::pauseOnExceptionsState ( ) const
inline

◆ pauseOnExceptionsState() [2/2]

PauseOnExceptionsState JSC::Debugger::pauseOnExceptionsState ( ) const
inline

◆ pausingBreakpointID() [1/2]

BreakpointID JSC::Debugger::pausingBreakpointID ( ) const
inline

◆ pausingBreakpointID() [2/2]

BreakpointID JSC::Debugger::pausingBreakpointID ( ) const
inline

◆ reasonForPause() [1/2]

ReasonForPause JSC::Debugger::reasonForPause ( ) const
inline

◆ reasonForPause() [2/2]

ReasonForPause JSC::Debugger::reasonForPause ( ) const
inline

◆ recompileAllJSFunctions() [1/2]

void JSC::Debugger::recompileAllJSFunctions ( )
virtual

◆ recompileAllJSFunctions() [2/2]

virtual void JSC::Debugger::recompileAllJSFunctions ( )
virtual

◆ registerCodeBlock() [1/2]

void JSC::Debugger::registerCodeBlock ( CodeBlock )

◆ registerCodeBlock() [2/2]

void JSC::Debugger::registerCodeBlock ( CodeBlock codeBlock)

◆ removeBreakpoint() [1/2]

void JSC::Debugger::removeBreakpoint ( BreakpointID  )

◆ removeBreakpoint() [2/2]

void JSC::Debugger::removeBreakpoint ( BreakpointID  id)

◆ resolveBreakpoint() [1/2]

void JSC::Debugger::resolveBreakpoint ( Breakpoint ,
SourceProvider  
)

◆ resolveBreakpoint() [2/2]

void JSC::Debugger::resolveBreakpoint ( Breakpoint breakpoint,
SourceProvider sourceProvider 
)

◆ returnEvent() [1/2]

void JSC::Debugger::returnEvent ( CallFrame callFrame)

◆ returnEvent() [2/2]

void JSC::Debugger::returnEvent ( CallFrame )

◆ setBreakpoint() [1/2]

BreakpointID JSC::Debugger::setBreakpoint ( Breakpoint ,
bool &  existing 
)

◆ setBreakpoint() [2/2]

BreakpointID JSC::Debugger::setBreakpoint ( Breakpoint breakpoint,
bool &  existing 
)

◆ setPauseOnExceptionsState() [1/2]

void JSC::Debugger::setPauseOnExceptionsState ( PauseOnExceptionsState  pause)

◆ setPauseOnExceptionsState() [2/2]

void JSC::Debugger::setPauseOnExceptionsState ( PauseOnExceptionsState  )

◆ setPauseOnNextStatement() [1/2]

void JSC::Debugger::setPauseOnNextStatement ( bool  pause)

◆ setPauseOnNextStatement() [2/2]

void JSC::Debugger::setPauseOnNextStatement ( bool  )

◆ setProfilingClient() [1/2]

void JSC::Debugger::setProfilingClient ( ProfilingClient client)

◆ setProfilingClient() [2/2]

void JSC::Debugger::setProfilingClient ( ProfilingClient )

◆ setSuppressAllPauses() [1/2]

void JSC::Debugger::setSuppressAllPauses ( bool  suppress)
inline

◆ setSuppressAllPauses() [2/2]

void JSC::Debugger::setSuppressAllPauses ( bool  suppress)
inline

◆ sourceParsed() [1/2]

virtual void JSC::Debugger::sourceParsed ( ExecState ,
SourceProvider ,
int  errorLineNumber,
const WTF::String errorMessage 
)
pure virtual

◆ sourceParsed() [2/2]

virtual void JSC::Debugger::sourceParsed ( ExecState ,
SourceProvider ,
int  errorLineNumber,
const WTF::String errorMessage 
)
pure virtual

◆ stepIntoStatement() [1/2]

void JSC::Debugger::stepIntoStatement ( )

◆ stepIntoStatement() [2/2]

void JSC::Debugger::stepIntoStatement ( )

◆ stepOutOfFunction() [1/2]

void JSC::Debugger::stepOutOfFunction ( )

◆ stepOutOfFunction() [2/2]

void JSC::Debugger::stepOutOfFunction ( )

◆ stepOverStatement() [1/2]

void JSC::Debugger::stepOverStatement ( )

◆ stepOverStatement() [2/2]

void JSC::Debugger::stepOverStatement ( )

◆ suppressAllPauses() [1/2]

bool JSC::Debugger::suppressAllPauses ( ) const
inline

◆ suppressAllPauses() [2/2]

bool JSC::Debugger::suppressAllPauses ( ) const
inline

◆ unwindEvent() [1/2]

void JSC::Debugger::unwindEvent ( CallFrame callFrame)

◆ unwindEvent() [2/2]

void JSC::Debugger::unwindEvent ( CallFrame )

◆ vm() [1/2]

VM& JSC::Debugger::vm ( )
inline

◆ vm() [2/2]

VM& JSC::Debugger::vm ( )
inline

◆ willEvaluateScript() [1/2]

double JSC::Debugger::willEvaluateScript ( )

◆ willEvaluateScript() [2/2]

double JSC::Debugger::willEvaluateScript ( )

◆ willExecuteProgram() [1/2]

void JSC::Debugger::willExecuteProgram ( CallFrame callFrame)

◆ willExecuteProgram() [2/2]

void JSC::Debugger::willExecuteProgram ( CallFrame )

Friends And Related Function Documentation

◆ DebuggerPausedScope

◆ LLIntOffsetsExtractor

◆ TemporaryPausedState


The documentation for this class was generated from the following files: