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 line Line.

meth (Debugger: debugger):breakpoint_set(Source: string, Line: integer)

Sets a breakpoint in Source at line Line.

meth (Debugger: debugger):continue(State: state, Value: any)

Resume State with Value in the debugger.

meth (Debugger: debugger):error_mode(Set: any)

If Set is not nil then Debugger will stop on errors.

meth (Debugger: debugger):step_in(State: state, Value: any)

Resume State with Value in the debugger, stopping after the next line.

meth (Debugger: debugger):step_mode(Set: any)

If Set is not nil then Debugger will stop on after each line.

meth (Debugger: debugger):step_out(State: state, Value: any)

Resume State with Value in the debugger, stopping at the end of the current function.

meth (Debugger: debugger):step_over(State: state, Value: any)

Resume State with Value 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 if State 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.