matlab debug

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

dbstep

Execute the current line of the file and, if the line is a call to another function, step into that function.

 Step In

dbstep in

Resume execution of file until completion or until another breakpoint is encountered.

 Continue

dbcont

After stepping in, run the rest of the called function or local function, leave the called function, and pause.

 Step Out

dbstep out

Pause debug mode.

 Pause

None

Exit debug mode.

 Quit Debugging

dbquit
相关文章
相关标签/搜索