DebuggerProxy

proxy for debugger interface implementing async calls

Constructors

this
this(DebuggerBase debugger, void delegate(void delegate() runnable) callbackDelegate)
Undocumented in source.

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

onDebuggerMessage
void onDebuggerMessage(string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
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

onResponse
void onResponse(ResponseCode code, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
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

Variables

_callback
DebuggerCallback _callback;
Undocumented in source.

Inherited Members

From Debugger

setDebuggerCallback
void setDebuggerCallback(DebuggerCallback callback)
Undocumented in source.
setDebuggerExecutable
void setDebuggerExecutable(string debuggerExecutable)
Undocumented in source.
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

onResponse
void onResponse(ResponseCode code, string msg)
Undocumented in source.
onDebugContextInfo
void onDebugContextInfo(DebugThreadList info, ulong threadId, int frame)

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

Meta