Main Content

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 AnalyzerIdentify and address code issues (Seit R2022b)
Code Compatibility AnalyzerIdentify and address compatibility issues against current version of MATLAB (Seit R2022a)

Funktionen

alle erweitern

dbclearRemove breakpoints
dbcontResume execution
dbdownReverse dbup workspace shift
dbquitQuit debug mode
dbstackFunction call stack
dbstatusList all breakpoints
dbstepExecute next executable line from current breakpoint
dbstopSet breakpoints for debugging
dbtypeDisplay file with line numbers
dbupShift current workspace to workspace of caller in debug mode
keyboardGive control to keyboard
echoDisplay statements during function or script execution
codeIssuesIdentify code issues in files (Seit R2022b)
fixFix code issues (Seit R2023a)
exportWrite code issues to file (Seit R2023b)
checkcodeCheck MATLAB code files for possible problems
mlintrptRun checkcode for file or folder
codeCompatibilityReportCreate code compatibility report
analyzeCodeCompatibilityCreate code compatibility analysis results
matlab.codeanalysis.validateConfigurationValidate Code Analyzer configuration file (Seit R2023a)
matlab.codeanalysis.refreshConfigurationRefresh cached Code Analyzer configuration (Seit R2023a)

Themen

Debugging

Syntaxprüfung

Versionskompatibilität

Codegenerierung

  • Code Generation Readiness Tool
    The code generation readiness tool screens MATLAB code for features and functions that code generation does not support.