webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Inspector::ScriptDebugServer Class Referenceabstract

#include <ScriptDebugServer.h>

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

Public Member Functions

void setBreakpointActions (JSC::BreakpointID, const ScriptBreakpoint &)
 
void removeBreakpointActions (JSC::BreakpointID)
 
void clearBreakpointActions ()
 
const BreakpointActionsgetActionsForBreakpoint (JSC::BreakpointID)
 
void addListener (ScriptDebugListener *)
 
void removeListener (ScriptDebugListener *, bool isBeingDestroyed)
 
void setBreakpointActions (JSC::BreakpointID, const ScriptBreakpoint &)
 
void removeBreakpointActions (JSC::BreakpointID)
 
void clearBreakpointActions ()
 
const BreakpointActionsgetActionsForBreakpoint (JSC::BreakpointID)
 
void addListener (ScriptDebugListener *)
 
void removeListener (ScriptDebugListener *, bool isBeingDestroyed)
 
- Public Member Functions inherited from JSC::Debugger
 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 Types

typedef HashSet< ScriptDebugListener * > ListenerSet
 
typedef void(ScriptDebugServer::* JavaScriptExecutionCallback) (ScriptDebugListener *)
 
typedef HashSet< ScriptDebugListener * > ListenerSet
 
typedef void(ScriptDebugServer::* JavaScriptExecutionCallback) (ScriptDebugListener *)
 

Protected Member Functions

 ScriptDebugServer (JSC::VM &)
 
 ~ScriptDebugServer ()
 
virtual void attachDebugger ()=0
 
virtual void detachDebugger (bool isBeingDestroyed)=0
 
virtual void didPause (JSC::JSGlobalObject *)=0
 
virtual void didContinue (JSC::JSGlobalObject *)=0
 
virtual void runEventLoopWhilePaused ()=0
 
virtual bool isContentScript (JSC::ExecState *) const =0
 
virtual void reportException (JSC::ExecState *, JSC::Exception *) const =0
 
bool evaluateBreakpointAction (const ScriptBreakpointAction &)
 
void dispatchFunctionToListeners (JavaScriptExecutionCallback)
 
void dispatchFunctionToListeners (const ListenerSet &listeners, JavaScriptExecutionCallback)
 
void dispatchDidPause (ScriptDebugListener *)
 
void dispatchDidContinue (ScriptDebugListener *)
 
void dispatchDidParseSource (const ListenerSet &listeners, JSC::SourceProvider *, bool isContentScript)
 
void dispatchFailedToParseSource (const ListenerSet &listeners, JSC::SourceProvider *, int errorLine, const String &errorMessage)
 
void dispatchBreakpointActionLog (JSC::ExecState *, const String &)
 
void dispatchBreakpointActionSound (JSC::ExecState *, int breakpointActionIdentifier)
 
void dispatchBreakpointActionProbe (JSC::ExecState *, const ScriptBreakpointAction &, JSC::JSValue sample)
 
 ScriptDebugServer (JSC::VM &)
 
 ~ScriptDebugServer ()
 
virtual void attachDebugger ()=0
 
virtual void detachDebugger (bool isBeingDestroyed)=0
 
virtual void didPause (JSC::JSGlobalObject *)=0
 
virtual void didContinue (JSC::JSGlobalObject *)=0
 
virtual void runEventLoopWhilePaused ()=0
 
virtual bool isContentScript (JSC::ExecState *) const =0
 
virtual void reportException (JSC::ExecState *, JSC::Exception *) const =0
 
bool evaluateBreakpointAction (const ScriptBreakpointAction &)
 
void dispatchFunctionToListeners (JavaScriptExecutionCallback)
 
void dispatchFunctionToListeners (const ListenerSet &listeners, JavaScriptExecutionCallback)
 
void dispatchDidPause (ScriptDebugListener *)
 
void dispatchDidContinue (ScriptDebugListener *)
 
void dispatchDidParseSource (const ListenerSet &listeners, JSC::SourceProvider *, bool isContentScript)
 
void dispatchFailedToParseSource (const ListenerSet &listeners, JSC::SourceProvider *, int errorLine, const String &errorMessage)
 
void dispatchBreakpointActionLog (JSC::ExecState *, const String &)
 
void dispatchBreakpointActionSound (JSC::ExecState *, int breakpointActionIdentifier)
 
void dispatchBreakpointActionProbe (JSC::ExecState *, const ScriptBreakpointAction &, JSC::JSValue sample)
 

Protected Attributes

bool m_doneProcessingDebuggerEvents { true }
 

Additional Inherited Members

- Public Types inherited from JSC::Debugger
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
}
 

Member Typedef Documentation

◆ JavaScriptExecutionCallback [1/2]

typedef void(ScriptDebugServer::* Inspector::ScriptDebugServer::JavaScriptExecutionCallback) (ScriptDebugListener *)
protected

◆ JavaScriptExecutionCallback [2/2]

typedef void(ScriptDebugServer::* Inspector::ScriptDebugServer::JavaScriptExecutionCallback) (ScriptDebugListener *)
protected

◆ ListenerSet [1/2]

◆ ListenerSet [2/2]

Constructor & Destructor Documentation

◆ ScriptDebugServer() [1/2]

Inspector::ScriptDebugServer::ScriptDebugServer ( JSC::VM vm)
protected

◆ ~ScriptDebugServer() [1/2]

Inspector::ScriptDebugServer::~ScriptDebugServer ( )
protected

◆ ScriptDebugServer() [2/2]

Inspector::ScriptDebugServer::ScriptDebugServer ( JSC::VM )
protected

◆ ~ScriptDebugServer() [2/2]

Inspector::ScriptDebugServer::~ScriptDebugServer ( )
protected

Member Function Documentation

◆ addListener() [1/2]

void Inspector::ScriptDebugServer::addListener ( ScriptDebugListener listener)

◆ addListener() [2/2]

void Inspector::ScriptDebugServer::addListener ( ScriptDebugListener )

◆ attachDebugger() [1/2]

virtual void Inspector::ScriptDebugServer::attachDebugger ( )
protectedpure virtual

◆ attachDebugger() [2/2]

virtual void Inspector::ScriptDebugServer::attachDebugger ( )
protectedpure virtual

◆ clearBreakpointActions() [1/2]

void Inspector::ScriptDebugServer::clearBreakpointActions ( )

◆ clearBreakpointActions() [2/2]

void Inspector::ScriptDebugServer::clearBreakpointActions ( )

◆ detachDebugger() [1/2]

virtual void Inspector::ScriptDebugServer::detachDebugger ( bool  isBeingDestroyed)
protectedpure virtual

◆ detachDebugger() [2/2]

virtual void Inspector::ScriptDebugServer::detachDebugger ( bool  isBeingDestroyed)
protectedpure virtual

◆ didContinue() [1/2]

virtual void Inspector::ScriptDebugServer::didContinue ( JSC::JSGlobalObject )
protectedpure virtual

◆ didContinue() [2/2]

virtual void Inspector::ScriptDebugServer::didContinue ( JSC::JSGlobalObject )
protectedpure virtual

◆ didPause() [1/2]

virtual void Inspector::ScriptDebugServer::didPause ( JSC::JSGlobalObject )
protectedpure virtual

◆ didPause() [2/2]

virtual void Inspector::ScriptDebugServer::didPause ( JSC::JSGlobalObject )
protectedpure virtual

◆ dispatchBreakpointActionLog() [1/2]

void Inspector::ScriptDebugServer::dispatchBreakpointActionLog ( JSC::ExecState exec,
const String &  message 
)
protected

◆ dispatchBreakpointActionLog() [2/2]

void Inspector::ScriptDebugServer::dispatchBreakpointActionLog ( JSC::ExecState ,
const String &   
)
protected

◆ dispatchBreakpointActionProbe() [1/2]

void Inspector::ScriptDebugServer::dispatchBreakpointActionProbe ( JSC::ExecState exec,
const ScriptBreakpointAction action,
JSC::JSValue  sample 
)
protected

◆ dispatchBreakpointActionProbe() [2/2]

void Inspector::ScriptDebugServer::dispatchBreakpointActionProbe ( JSC::ExecState ,
const ScriptBreakpointAction ,
JSC::JSValue  sample 
)
protected

◆ dispatchBreakpointActionSound() [1/2]

void Inspector::ScriptDebugServer::dispatchBreakpointActionSound ( JSC::ExecState ,
int  breakpointActionIdentifier 
)
protected

◆ dispatchBreakpointActionSound() [2/2]

void Inspector::ScriptDebugServer::dispatchBreakpointActionSound ( JSC::ExecState ,
int  breakpointActionIdentifier 
)
protected

◆ dispatchDidContinue() [1/2]

void Inspector::ScriptDebugServer::dispatchDidContinue ( ScriptDebugListener listener)
protected

◆ dispatchDidContinue() [2/2]

void Inspector::ScriptDebugServer::dispatchDidContinue ( ScriptDebugListener )
protected

◆ dispatchDidParseSource() [1/2]

void Inspector::ScriptDebugServer::dispatchDidParseSource ( const ListenerSet listeners,
JSC::SourceProvider sourceProvider,
bool  isContentScript 
)
protected

◆ dispatchDidParseSource() [2/2]

void Inspector::ScriptDebugServer::dispatchDidParseSource ( const ListenerSet listeners,
JSC::SourceProvider ,
bool  isContentScript 
)
protected

◆ dispatchDidPause() [1/2]

void Inspector::ScriptDebugServer::dispatchDidPause ( ScriptDebugListener )
protected

◆ dispatchDidPause() [2/2]

void Inspector::ScriptDebugServer::dispatchDidPause ( ScriptDebugListener listener)
protected

◆ dispatchFailedToParseSource() [1/2]

void Inspector::ScriptDebugServer::dispatchFailedToParseSource ( const ListenerSet listeners,
JSC::SourceProvider ,
int  errorLine,
const String &  errorMessage 
)
protected

◆ dispatchFailedToParseSource() [2/2]

void Inspector::ScriptDebugServer::dispatchFailedToParseSource ( const ListenerSet listeners,
JSC::SourceProvider sourceProvider,
int  errorLine,
const String &  errorMessage 
)
protected

◆ dispatchFunctionToListeners() [1/4]

void Inspector::ScriptDebugServer::dispatchFunctionToListeners ( JavaScriptExecutionCallback  )
protected

◆ dispatchFunctionToListeners() [2/4]

void Inspector::ScriptDebugServer::dispatchFunctionToListeners ( JavaScriptExecutionCallback  callback)
protected

◆ dispatchFunctionToListeners() [3/4]

void Inspector::ScriptDebugServer::dispatchFunctionToListeners ( const ListenerSet listeners,
JavaScriptExecutionCallback  callback 
)
protected

◆ dispatchFunctionToListeners() [4/4]

void Inspector::ScriptDebugServer::dispatchFunctionToListeners ( const ListenerSet listeners,
JavaScriptExecutionCallback   
)
protected

◆ evaluateBreakpointAction() [1/2]

bool Inspector::ScriptDebugServer::evaluateBreakpointAction ( const ScriptBreakpointAction )
protected

◆ evaluateBreakpointAction() [2/2]

bool Inspector::ScriptDebugServer::evaluateBreakpointAction ( const ScriptBreakpointAction breakpointAction)
protected

◆ getActionsForBreakpoint() [1/2]

const BreakpointActions& Inspector::ScriptDebugServer::getActionsForBreakpoint ( JSC::BreakpointID  )

◆ getActionsForBreakpoint() [2/2]

const BreakpointActions & Inspector::ScriptDebugServer::getActionsForBreakpoint ( JSC::BreakpointID  id)

◆ isContentScript() [1/2]

virtual bool Inspector::ScriptDebugServer::isContentScript ( JSC::ExecState ) const
protectedpure virtual

◆ isContentScript() [2/2]

virtual bool Inspector::ScriptDebugServer::isContentScript ( JSC::ExecState ) const
protectedpure virtual

◆ removeBreakpointActions() [1/2]

void Inspector::ScriptDebugServer::removeBreakpointActions ( JSC::BreakpointID  id)

◆ removeBreakpointActions() [2/2]

void Inspector::ScriptDebugServer::removeBreakpointActions ( JSC::BreakpointID  )

◆ removeListener() [1/2]

void Inspector::ScriptDebugServer::removeListener ( ScriptDebugListener listener,
bool  isBeingDestroyed 
)

◆ removeListener() [2/2]

void Inspector::ScriptDebugServer::removeListener ( ScriptDebugListener ,
bool  isBeingDestroyed 
)

◆ reportException() [1/2]

virtual void Inspector::ScriptDebugServer::reportException ( JSC::ExecState ,
JSC::Exception  
) const
protectedpure virtual

◆ reportException() [2/2]

virtual void Inspector::ScriptDebugServer::reportException ( JSC::ExecState ,
JSC::Exception  
) const
protectedpure virtual

◆ runEventLoopWhilePaused() [1/2]

virtual void Inspector::ScriptDebugServer::runEventLoopWhilePaused ( )
protectedpure virtual

◆ runEventLoopWhilePaused() [2/2]

virtual void Inspector::ScriptDebugServer::runEventLoopWhilePaused ( )
protectedpure virtual

◆ setBreakpointActions() [1/2]

void Inspector::ScriptDebugServer::setBreakpointActions ( JSC::BreakpointID  ,
const ScriptBreakpoint  
)

◆ setBreakpointActions() [2/2]

void Inspector::ScriptDebugServer::setBreakpointActions ( JSC::BreakpointID  id,
const ScriptBreakpoint scriptBreakpoint 
)

Member Data Documentation

◆ m_doneProcessingDebuggerEvents

bool Inspector::ScriptDebugServer::m_doneProcessingDebuggerEvents { true }
protected

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