Debugging and Analysis - MATLAB & Simulink (original) (raw)

Main Content

Diagnose problems, check syntax and release compatibility

As you work in the Editor and Live Editor, MATLABĀ® automatically identifies potential coding problems. Debugging features help you diagnose specific issues. Additionally, you can generate reports that help you update your code when you upgrade to a newer MATLAB release.

Tools

Functions

expand all

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
codeIssues Identify code issues in files (Since R2022b)
fix Fix code issues (Since R2023a)
export Write code issues to file (Since R2023b)
checkcode Check MATLAB code files for possible problems

Topics

Debugging

Syntax Checking

Release Compatibility

Code Generation