Main Content

Debugging and Analysis

Diagnose problems, check syntax and release compatibility

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.

Strumenti

Code Compatibility AnalyzerIdentify and address compatibility issues against current version of MATLAB

Funzioni

espandi tutto

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
checkcodeCheck MATLAB code files for possible problems
mlintrptRun checkcode for file or folder
codeCompatibilityReportCreate code compatibility report
analyzeCodeCompatibilityCreate code compatibility analysis results

Argomenti

Debugging

Syntax Checking

Release Compatibility

Code Generation

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