As you work in the 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.
|Quit debug mode|
|Function call stack|
|List all breakpoints|
|Execute next executable line from current breakpoint|
|Set breakpoints for debugging|
|Display file with line numbers|
|Shift current workspace to workspace of caller in debug mode|
|Give control to keyboard|
|Display statements during function or script execution|
Debug your MATLAB program interactively in the Editor or programmatically in the Command Window.
Annotating a file makes it easier to find areas of your code that you intend to improve, complete, or update later.
Use Editor/Debugger preferences to customize the Editor.
Some entries appear in different colors in the Command Window, the Editor, and the Live Editor to help you identify MATLAB elements. This is known as syntax highlighting.
Use the MATLAB Code Analyzer to check your code for coding problems automatically.
Generate a report that identifies potential errors, problems, and opportunities for improvement in your code.
Set Code Analyzer preferences to enable or disable Code Analyzer features and specify message indicator preferences.
Generate a report to identify potential compatibility issues in your code when you upgrade to a newer MATLAB release.