debuggerΒΆ
fun debugger(Function: any): debuggerReturns a new debugger for
Function().meth (Debugger: debugger):breakpoint_clear(Source: string, Line: integer)Clears any breakpoints from
Sourceat lineLine.meth (Debugger: debugger):breakpoint_set(Source: string, Line: integer)Sets a breakpoint in
Sourceat lineLine.meth (Debugger: debugger):continue(State: state, Value: any)Resume
StatewithValuein the debugger.meth (Debugger: debugger):error_mode(Set: any)If
Setis notnilthenDebuggerwill stop on errors.meth (Debugger: debugger):step_in(State: state, Value: any)Resume
StatewithValuein the debugger, stopping after the next line.meth (Debugger: debugger):step_mode(Set: any)If
Setis notnilthenDebuggerwill stop on after each line.meth (Debugger: debugger):step_out(State: state, Value: any)Resume
StatewithValuein the debugger, stopping at the end of the current function.meth (Debugger: debugger):step_over(State: state, Value: any)Resume
StatewithValuein 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 ifStatedoes 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.