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.
|Reverse dbup workspace shift|
|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 execution|
To debug your MATLAB program graphically, use the Editor/Debugger. Alternatively, you can use debugging functions 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 and the 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 existing code your code when you upgrade to a newer MATLAB release.