debug
- : debug
()¶ Quick index of the interactive debugger commands.
Run
help CMDagainst any entry below for its full description and options.Nexus offers the following debugging commands:
dbstopSet a breakpoint.
dbclearDelete a breakpoint.
dbstatusShow every breakpoint currently set.
dbwherePrint the file and line number at the current stop point.
dbtypeShow a debugged function’s source, with each line numbered.
dblistShow a 10-line window of source centered on the current stop point.
dbstepdbnextAdvance execution by one or more statements, step into a called function, or run to the end of the current function, returning to the debug prompt afterward.
dbcontResume ordinary execution from the debug prompt.
dbquitLeave debug mode right away and return to the top-level prompt.
dbstackShow the current call stack.
dbupMove one frame up the call stack.
dbdownMove one frame down the call stack.
keyboardDrop into debug mode from within a running m-file.
debug_on_errorControl whether an error drops Nexus into debug mode.
debug_on_warningControl whether a warning drops Nexus into debug mode.
debug_on_interruptControl whether an interrupt drops Nexus into debug mode.
isdebugmodeQuery whether the interpreter is currently in debug mode.
On hitting a breakpoint (or any other trigger for debug mode), the prompt switches to
"K>>", giving access to the workspace of the stopped function; any Nexus command valid in that context can be typed there.