Diagnose problems with programs

You can diagnose problems with your MATLAB® program either graphically or programmatically. Both approaches allow you to set breakpoints to pause the execution of your MATLAB program so you can examine values where you think a problem could be.


dbclear Clear breakpoints
dbcont Resume execution
dbdown Reverse workspace shift performed by dbup, while in debug mode
dbquit Quit debug mode
dbstack Function call stack
dbstatus List all breakpoints
dbstep Execute one or more lines from current breakpoint
dbstop Set breakpoints for debugging
dbtype List text file with line numbers
dbup Shift current workspace to workspace of caller, while in debug mode
checkcode Check MATLAB code files for possible problems
keyboard Input from keyboard
mlintrpt Run checkcode for file or folder, reporting results in browser
Was this topic helpful?