dbclear in myprogram at 6
To clear all breakpoints in the file, right-click the breakpoint alley and select Clear All in
File. You can also use the dbclear all command. For example, to clear all the
breakpoints in a file called myprogram.m, type
dbclear all in myprogram
To clear all breakpoints in all files, including error breakpoints, right-click the breakpoint
alley and select Clear All. You also can use the dbclear all command.
Breakpoints clear automatically when you end a MATLAB session. To save your
breakpoints for future sessions, see the dbstatus function.
See Also
Related Examples
- “Debug a MATLAB Program” on page 22-2
- “Examine Values While Debugging” on page 22-15
22 Debugging MATLAB Code