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
dbclear | Remove breakpoints |
dbcont | Resume execution |
dbdown | Reverse dbup workspace shift |
dbquit | Quit debug mode |
dbstack | Function call stack |
dbstatus | List all breakpoints |
dbstep | Execute next executable line from current breakpoint |
dbstop | Set breakpoints for debugging |
dbtype | Display file with line numbers |
dbup | Shift current workspace to workspace of caller in debug mode |
keyboard | Give control to keyboard |
echo | Display statements during function or script execution |
Topics
- Debug MATLAB Code Files
Diagnose problems in MATLAB code files using different debugging methods. (Since R2021b)
- Editor/Debugger Settings
Use Editor/Debugger settings to customize the Editor.