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
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.
Resume the execution of a program while debugging
Create a file,
buggy.m, that contains
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)
dbcont command to continue
execution to the end of the program and end debugging,