Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QV4Debugger Class Reference

#include <qv4debugger.h>

Inheritance diagram for QV4Debugger:
Collaboration diagram for QV4Debugger:

Classes

struct  BreakPoint
struct  ExecutionState

Public Types

enum  State { Running , Paused }
enum  Speed {
  FullThrottle = 0 , StepOut , StepOver , StepIn ,
  NotStepping = FullThrottle
}
enum  PauseReason { PauseRequest , BreakPointHit , Throwing , Step }

Signals

void debuggerPaused (QV4Debugger *self, QV4Debugger::PauseReason reason)
void scheduleJob ()

Public Member Functions

 QV4Debugger (QV4::ExecutionEngine *engine)
QV4::ExecutionEngineengine () const
const QV4DataCollectorcollector () const
QV4DataCollectorcollector ()
void pause ()
void resume (Speed speed)
State state () const
void addBreakPoint (const QString &fileName, int lineNumber, const QString &condition=QString())
void removeBreakPoint (const QString &fileName, int lineNumber)
void setBreakOnThrow (bool onoff)
void clearPauseRequest ()
ExecutionState currentExecutionState () const
QVector< QV4::StackFramestackTrace (int frameLimit=-1) const
QVector< QV4::Heap::ExecutionContext::ContextType > getScopeTypes (int frame=0) const
QV4::FunctiongetFunction () const
void runInEngine (QV4DebugJob *job)
void maybeBreakAtInstruction () override
void enteringFunction () override
void leavingFunction (const QV4::ReturnedValue &retVal) override
void aboutToThrow () override
bool pauseAtNextOpportunity () const override
Public Member Functions inherited from QV4::Debugging::Debugger
bool pauseAtNextOpportunity () const
void maybeBreakAtInstruction ()
void enteringFunction ()
void leavingFunction (const ReturnedValue &)
void aboutToThrow ()

Detailed Description

Definition at line 31 of file qv4debugger.h.

Member Enumeration Documentation

◆ PauseReason

Enumerator
PauseRequest 
BreakPointHit 
Throwing 
Step 

Definition at line 55 of file qv4debugger.h.

◆ Speed

Enumerator
FullThrottle 
StepOut 
StepOver 
StepIn 
NotStepping 

Definition at line 46 of file qv4debugger.h.

◆ State

Enumerator
Running 
Paused 

Definition at line 41 of file qv4debugger.h.

Constructor & Destructor Documentation

◆ QV4Debugger()

QV4Debugger::QV4Debugger ( QV4::ExecutionEngine * engine)

Definition at line 31 of file qv4debugger.cpp.

References QV4Debugger(), NotStepping, and Running.

Referenced by QV4Debugger().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ aboutToThrow()

void QV4Debugger::aboutToThrow ( )
override

Definition at line 204 of file qv4debugger.cpp.

References Throwing.

◆ addBreakPoint()

void QV4Debugger::addBreakPoint ( const QString & fileName,
int lineNumber,
const QString & condition = QString() )

Definition at line 93 of file qv4debugger.cpp.

◆ clearPauseRequest()

void QV4Debugger::clearPauseRequest ( )

Definition at line 116 of file qv4debugger.cpp.

◆ collector() [1/2]

QV4DataCollector * QV4Debugger::collector ( )

Definition at line 61 of file qv4debugger.cpp.

Referenced by QV4DebuggerAgent::debuggerPaused().

Here is the caller graph for this function:

◆ collector() [2/2]

const QV4DataCollector * QV4Debugger::collector ( ) const

Definition at line 56 of file qv4debugger.cpp.

◆ currentExecutionState()

QV4Debugger::ExecutionState QV4Debugger::currentExecutionState ( ) const

Definition at line 122 of file qv4debugger.cpp.

◆ debuggerPaused

void QV4Debugger::debuggerPaused ( QV4Debugger * self,
QV4Debugger::PauseReason reason )
signal

◆ engine()

QV4::ExecutionEngine * QV4Debugger::engine ( ) const

Definition at line 51 of file qv4debugger.cpp.

◆ enteringFunction()

void QV4Debugger::enteringFunction ( )
override

Definition at line 179 of file qv4debugger.cpp.

◆ getFunction()

QV4::Function * QV4Debugger::getFunction ( ) const

Definition at line 216 of file qv4debugger.cpp.

◆ getScopeTypes()

QVector< QV4::Heap::ExecutionContext::ContextType > QV4Debugger::getScopeTypes ( int frame = 0) const

◆ leavingFunction()

void QV4Debugger::leavingFunction ( const QV4::ReturnedValue & retVal)
override

Definition at line 189 of file qv4debugger.cpp.

References StepOver.

◆ maybeBreakAtInstruction()

void QV4Debugger::maybeBreakAtInstruction ( )
override

Definition at line 140 of file qv4debugger.cpp.

References BreakPointHit, NotStepping, PauseRequest, QV4DebugJob::run(), Step, StepIn, StepOut, and StepOver.

Here is the call graph for this function:

◆ pause()

void QV4Debugger::pause ( )

Definition at line 66 of file qv4debugger.cpp.

References Paused.

Referenced by QV4DebuggerAgent::pause().

Here is the caller graph for this function:

◆ pauseAtNextOpportunity()

bool QV4Debugger::pauseAtNextOpportunity ( ) const
override

Definition at line 131 of file qv4debugger.cpp.

References StepOver.

◆ removeBreakPoint()

void QV4Debugger::removeBreakPoint ( const QString & fileName,
int lineNumber )

Definition at line 101 of file qv4debugger.cpp.

◆ resume()

void QV4Debugger::resume ( Speed speed)

Definition at line 74 of file qv4debugger.cpp.

References Paused.

◆ runInEngine()

void QV4Debugger::runInEngine ( QV4DebugJob * job)

Definition at line 272 of file qv4debugger.cpp.

◆ scheduleJob

void QV4Debugger::scheduleJob ( )
signal

◆ setBreakOnThrow()

void QV4Debugger::setBreakOnThrow ( bool onoff)

Definition at line 109 of file qv4debugger.cpp.

Referenced by QV4DebuggerAgent::addDebugger().

Here is the caller graph for this function:

◆ stackTrace()

QVector< QV4::StackFrame > QV4Debugger::stackTrace ( int frameLimit = -1) const

Definition at line 135 of file qv4debugger.cpp.

◆ state()

QV4Debugger::State QV4Debugger::state ( ) const

Definition at line 88 of file qv4debugger.cpp.


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