debuggerΒΆ
fun debugger(Function: any): debugger
Returns a new debugger for
Function()
.meth (Debugger: debugger):breakpoint_clear(Source: string, Line: integer)
Clears any breakpoints from
Source
at lineLine
.meth (Debugger: debugger):breakpoint_set(Source: string, Line: integer)
Sets a breakpoint in
Source
at lineLine
.meth (Debugger: debugger):continue(State: state, Value: any)
Resume
State
withValue
in the debugger.meth (Debugger: debugger):error_mode(Set: any)
If
Set
is notnil
thenDebugger
will stop on errors.meth (Debugger: debugger):step_in(State: state, Value: any)
Resume
State
withValue
in the debugger, stopping after the next line.meth (Debugger: debugger):step_mode(Set: any)
If
Set
is notnil
thenDebugger
will stop on after each line.meth (Debugger: debugger):step_out(State: state, Value: any)
Resume
State
withValue
in the debugger, stopping at the end of the current function.meth (Debugger: debugger):step_over(State: state, Value: any)
Resume
State
withValue
in the debugger, stopping after the next line in the same function (i.e. stepping over function calls).meth (State: state):locals: list[string]
Returns the list of locals in
State
. Returns an empty list ifState
does not have any debugging information.meth (State: state):source: tuple[string, integer]
Returns the source location for
State
.meth (State: state):trace: list[state]
Returns the call trace from
State
, excluding states that do not have debugging information.