Main Content

Debug Code

Diagnose problems while developing code in the Editor

Diagnose and resolve issues in your MATLAB® code using interactive debugging tools in the Editor and Live Editor, or by running debugging functions in the Command Window.

Functions

dbclearRemove breakpoints
dbcontResume execution
dbdownReverse dbup workspace shift
dbquitQuit debug mode
dbstackFunction call stack
dbstatusList all breakpoints
dbstepExecute next executable line from current breakpoint
dbstopSet breakpoints for debugging
dbtypeDisplay file with line numbers
dbupShift current workspace to workspace of caller in debug mode
keyboardGive control to keyboard
echoDisplay statements during function or script execution

Topics