Debug

The debug module provides code inspection tools and the “traceback explorer” interactive shell environment. Access to these components is primarily via breakpoint() and an exception handler in nutils.util.run().

class nutils.debug.Frame(frame, lineno=None)[source]

frame info

class nutils.debug.Explorer(exc, frames, intro)[source]

traceback explorer

show_context()[source]

show traceback up to index

do_s(arg)[source]

Show source code of the currently focussed frame.

do_l(arg)[source]

List the stack and exception type

do_q(arg)[source]

Quit traceback exploror.

do_u(arg)[source]

Shift focus to the frame above the current one.

do_d(arg)[source]

Shift focus to the frame below the current one.

do_w(arg)[source]

Show overview of local variables.

do_p(arg)[source]

Print local of global variable, or function evaluation.

onecmd(text)[source]

wrap command handling to avoid a second death

do_pp(arg)[source]

Pretty-print local of global variable, or function evaluation.

completedefault(text, line, begidx, endidx)[source]

complete object names

nutils.debug.exception()[source]

constructor

nutils.debug.write_html(out, exc, frames)[source]

write exception info to html file

nutils.debug.breakpoint()[source]