dbquit
Quit debug mode.
📝Syntax
dbquit
dbquit all
📥Input Arguments
Parameter Description
all optional keyword to quit debug mode for all paused functions.
📄Description

dbquit terminates debug mode. The command window returns to the standard prompt ( > > ). The file being executed is not completed and no output arguments are returned. All breakpoints remain active.

If the debugger is active in more than one function, dbquit exits debug mode only for the currently active function. Other paused functions remain in debug mode until dbquit is called again.

If execution is paused in a function that was reached by stepping into another function, dbquit terminates debugging for both functions.

dbquit all terminates debugging for all files simultaneously.

This function can only be called from the command line while debugging.

💡Examples
Quit debugging for the active function.
function z = buggy(x)
  n = length(x);
  z = (1:n) / x';
end

dbstop in buggy
buggy(5)
dbquit
Quit debugging for all paused functions.
dbquit all
🔗See Also
dbcontdbcleardbstackdbstatusdbstop
🕔Version History
Version Description
1.16.0 initial version
Edit this page on GitHub