116 abstract onExit(
ProgramControl pgm,
int statement, reference returnValue, reference rs, reference rtsid);
136 abstract onStep(
ProgramControl pgm,
int blockStatement, *
int statement, *
int breakpointId, reference flow, reference rs, reference rtsid);
DebugProgram class supports Qore Program debugging via ProgramControl.
Definition: QC_DebugProgram.dox.h:42
const DebugDetach
Detach program from debugging, it is not normally used from script.
Definition: QC_DebugProgram.dox.h:159
int breakProgramThread(ProgramControl pgm, int tid)
Break particular program thread.
abstract onExit(ProgramControl pgm, int statement, reference returnValue, reference rs, reference rtsid)
Executed when a program/thread is exited.
const DebugFlowBreak
force break Statements command
Definition: QC_DebugProgram.dox.h:177
int getInterruptedCount()
Get number of interrupted threads.
const DebugFlowContinue
force continue Statements command
Definition: QC_DebugProgram.dox.h:179
abstract onException(ProgramControl pgm, int statement, hash ex, reference dismiss, reference rs, reference rtsid)
Executed when an exception is raised.
nothing waitForTerminationAndClear()
Clear all programs and wait for all threads to finish executing callbacks.
copy()
Throws an exception to prevent objects of this class from being copied.
abstract onFunctionExit(ProgramControl pgm, int statement, reference returnValue, reference rs, reference rtsid)
Executed when a function is exited.
int breakProgram(ProgramControl pgm)
Break program, i.e. all threads.
const DebugFlowReturn
force return Statements command
Definition: QC_DebugProgram.dox.h:181
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:45
const DebugRun
Run program, avoid stepping.
Definition: QC_DebugProgram.dox.h:161
list< auto > list(...)
Returns a list of the arguments passed at the top level.
nothing addProgram(ProgramControl pgm)
Add program to debugging.
const DebugStepOver
Run one step in program, in case of function call stepping does not go to function.
Definition: QC_DebugProgram.dox.h:165
constructor()
Creates the debug program object with notification functions without any functionality.
abstract onFunctionEnter(ProgramControl pgm, int statement, reference rs, reference rtsid)
Executed when a function is entered.
hash< auto > hash(object obj)
Returns a hash of an object's members.
abstract onStep(ProgramControl pgm, int blockStatement, *int statement, *int breakpointId, reference flow, reference rs, reference rtsid)
Executed when step is performed.
const DebugUntilReturn
Run program till function is exited.
Definition: QC_DebugProgram.dox.h:167
abstract onDetach(ProgramControl pgm, reference rs, reference rtsid)
Executed when thread is datached from program being debugged.
destructor()
Waits for all threads to finish executing, then deletes all global variables, dereferences the intern...
const DebugStep
Run one step in program, in case of function call stepping goes on in function.
Definition: QC_DebugProgram.dox.h:163
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
abstract onAttach(ProgramControl pgm, reference rs, reference rtsid)
Executed when new thread is attached to program being debugged.
list getAllPrograms()
Get all programs being debugged.
nothing removeProgram(ProgramControl pgm)
Remove program from debugging.