dbquit terminates debug mode.
The Command Window then displays the standard prompt (>>).
The file being processed is not completed and no results are returned. All breakpoints remain in effect, unless your file contains (and MATLAB has processed) one or more of the following commands:clear all, clear function, clear classes.
If you debug file1 and step into file2, running dbquit terminates debugging for both files. However, if you debug file3 and also debug file4, running dbquit terminates debugging for file4, butfile3 remains in debug mode until you run dbquit again.
K>> dbstack in file1 at 11 dbstack displays the line numbers and file names of the function calls that led to the current breakpoint, listed in the order in which they were executed.