DebuggerProxy

proxy for debugger interface implementing async calls

Members

Functions

execContinue
void execContinue()

continue program

execPause
void execPause()

interrupt execution

execRestart
void execRestart()

restart

execStart
void execStart()

start execution, can be called after program is loaded

execStepIn
void execStepIn(ulong threadId)

step in

execStepOut
void execStepOut(ulong threadId)

step out

execStepOver
void execStepOver(ulong threadId)

step over

execStop
void execStop()

stop program execution

onDebugContextInfo
void onDebugContextInfo(DebugThreadList info, ulong threadId, int frame)

send debug context (threads, stack frames, local vars...)

onDebugState
void onDebugState(DebuggingState state, StateChangeReason reason, DebugFrame location, Breakpoint bp)

state changed: running / paused / stopped

onProgramExecutionStatus
void onProgramExecutionStatus(ProgramExecution process, ExecutionStatus status, int exitCode)

called when program execution is stopped

onProgramLoaded
void onProgramLoaded(bool successful, bool debugInfoLoaded)

debugger is started and loaded program, you can set breakpoints at this time

requestDebugContextInfo
void requestDebugContextInfo(ulong threadId, int frame)

request stack trace and local vars for thread and frame

run
void run()

start execution

setBreakpoints
void setBreakpoints(Breakpoint[] breakpoints)

update list of breakpoints

setDebuggerCallback
void setDebuggerCallback(DebuggerCallback callback)

set debugger callback

setDebuggerExecutable
void setDebuggerExecutable(string debuggerExecutable)

set debugger executable

setExecutableParams
void setExecutableParams(string executableFile, string[] args, string workingDir, string[string] envVars)

returns execution status

setTerminalExecutable
void setTerminalExecutable(string terminalExecutable)

set external terminal parameters before execution

setTerminalTty
void setTerminalTty(string terminalTty)

set terminal device name before execution

stop
void stop()

stop execution

Properties

executableFile
string executableFile [@property getter]

executable file

isDebugger
bool isDebugger [@property getter]

returns true if it's debugger

isMagoDebugger
bool isMagoDebugger [@property getter]

returns true if it's mago debugger

Inherited Members

From Debugger

execStart
void execStart()

can be called after program is loaded

execContinue
void execContinue()

continue execution

execStop
void execStop()

stop program execution

execPause
void execPause()

interrupt execution

execStepOver
void execStepOver(ulong threadId)

step over

execStepIn
void execStepIn(ulong threadId)

step in

execStepOut
void execStepOut(ulong threadId)

step out

execRestart
void execRestart()

restart

setBreakpoints
void setBreakpoints(Breakpoint[] bp)

update list of breakpoints

requestDebugContextInfo
void requestDebugContextInfo(ulong threadId, int frame)

request stack trace and local vars for thread and frame

From DebuggerCallback

onDebuggerMessage
void onDebuggerMessage(string msg)

debugger message line

onProgramLoaded
void onProgramLoaded(bool successful, bool debugInfoLoaded)

debugger is started and loaded program, you can set breakpoints at this time

onDebugState
void onDebugState(DebuggingState state, StateChangeReason reason, DebugFrame location, Breakpoint bp)

state changed: running / paused / stopped

onDebugContextInfo
void onDebugContextInfo(DebugThreadList info, ulong threadId, int frame)

send debug context (threads, stack frames, local vars...)

Meta