Step Through File
While debugging, you can step through a MATLAB file, pausing at points where you want to examine values.
This table describes available debugging actions and the different methods you can use to execute them.
Description | Toolbar Button | Function Alternative |
---|---|---|
Continue execution of file until the line where the cursor is positioned. Also available on the context menu. | Run to Cursor | None |
Execute the current line of the file. | Step | |
Execute the current line of the file and, if the line is a call to another function, step into that function. | Step In |
|
Resume execution of file until completion or until another breakpoint is encountered. | Continue | |
After stepping in, run the rest of the called function or local function, leave the called function, and pause. | Step Out |
|
Pause debug mode. | Pause | None |
Exit debug mode. | Quit Debugging | dbquit |