Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

dbcont

Resume execution

Syntax

Description

example

dbcont resumes execution of a MATLAB® code file after pausing. Execution continues until another breakpoint is encountered, a pause condition is met, an error occurs, or execution completes successfully.

    Note:   If you want to edit a file as a result of debugging, it is a good practice to first quit debugging. Otherwise, you can get unexpected results.

Examples

collapse all

Resume the execution of a program while debugging using the dbcont command.

Create a file, buggy.m, that contains these statements.

function z = buggy(x)
n = length(x);
z = (1:n)./x;

Add a breakpoint at line 2 and run the code. MATLAB pauses execution at the breakpoint.

dbstop in buggy at 2
buggy(5)

Run the dbcont command to continue execution to the end of the program and end debugging,

dbcont

Related Examples

See Also

| | | |

Introduced before R2006a


Was this topic helpful?