Debugging und Analyse
Diagnose von Problemen und Prüfen der Syntax sowie der Versionskompatibilität
Bei der Arbeit im Editor und im Live-Editor erkennt MATLAB® automatisch potenzielle Probleme im Code. Die Debugging-Funktionen helfen Ihnen bei der Diagnose bestimmter Probleme. Sie können darüber hinaus Berichte erzeugen, die Ihnen dabei helfen, den Code beim Upgrade auf eine neuere MATLAB-Version zu aktualisieren.
Tools
Code Analyzer | Identify and address code issues (Seit R2022b) |
Code Compatibility Analyzer | Identify and address compatibility issues against current version of MATLAB (Seit R2022a) |
Funktionen
Themen
Debugging
- Debug MATLAB Code Files
Diagnose problems in MATLAB code files using different debugging methods.
- Editor/Debugger Preferences
Use Editor/Debugger preferences to customize the Editor.
Syntaxprüfung
- 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.
Versionskompatibilität
- MATLAB Code Compatibility Analyzer
Generate a report to identify potential compatibility issues in your code when you upgrade to a newer MATLAB release.
Codegenerierung
- Code Generation Readiness Tool
The code generation readiness tool screens MATLAB code for features and functions that code generation does not support.