Debugging and Analysis
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.
|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|
- Check Syntax as You Type
Use syntax highlighting, delimiter matching, and code suggestions and completions to write commands faster and avoid syntax errors.
- Check Code for Errors and Warnings Using the Code Analyzer
Use the MATLAB Code Analyzer to check your code for coding problems automatically.
- MATLAB Code Analyzer Report
Generate a report that identifies potential errors, problems, and opportunities for improvement in your code.
- Code Analyzer Preferences
Set Code Analyzer preferences to enable or disable Code Analyzer features and specify message indicator preferences.
- Configure Code Analyzer
Configure Code Analyzer messages and add custom checks.
- Index of Code Analyzer Checks
This topic contains a listing of built-in MATLAB Code Analyzer checks which you can modify to meet your own custom coding standards.
- MATLAB Code Compatibility Analyzer
Generate a report to identify potential compatibility issues in your code when you upgrade to a newer MATLAB release.
- Code Generation Readiness Tool
The code generation readiness tool screens MATLAB code for features and functions that code generation does not support.