dbcont
Resume execution from a paused breakpoint.
📝Syntax
dbcont
📄Description

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

Use dbcont to continue execution after examining workspace variables or debugging code.

Note: If you want to edit a file during debugging, it is recommended to first exit debug mode using dbquit to avoid unexpected behavior.

Outside a debug session, dbcont raises Debug commands only allowed when stopped in debug mode. At a stop on an uncaught error, dbcont ends the session without displaying the error again; at a stop on a caught error, execution resumes in the catch block.

💡Examples
Resume execution after a breakpoint in a function.
function z = buggy(x)
  n = length(x);
  z = (1:n) / x';
end

dbstop in buggy at 2
buggy(5)
dbcont
🔗See Also
dbquitdbcleardbstatusdbstopdbstep
🕔Version History
Version Description
1.16.0 initial version
2.0.0 uniform message outside a debug session, behaviour at error stops
Edit this page on GitHub