| MATLAB Function Reference | ![]() |
In the Editor, click
to clear
a breakpoint, or
to clear all breakpoints.
For details, see Disabling and Clearing Breakpoints.
dbclear all
dbclear in mfile ...
dbclear if error ...
dbclear if warning ...
dbclear if naninf
dbclear if infnan
dbclear all removes all breakpoints in all M-files, as well as breakpoints set for errors, caught errors, caught error identifiers, warnings, warning identifiers, and naninf/infnan.
dbclear in mfile ... formats are listed here:
| Format | Action |
|---|---|
| dbclear in mfile | Removes all breakpoints in mfile.mfile must be the name of an M-file, and can include a MATLAB®partialpath. If the command includes the -completenames option, then mfile need not be on the path, as long as it is a fully qualified file name. (On Microsoft®Windows® platforms, this is a file name that begins with \\ or with a drive % letter followed by a colon. On UNIX® platforms, this is a file name that begins with / or ~.) mfile can include a filemarker to specify the path to a particular subfunction or to a nested function within an M-file. |
| dbclear in mfile at lineno | Removes the breakpoint set at line number lineno in mfile. |
| dbclear in mfile at lineno@ | Removes the breakpoint set in the anonymous function at line number lineno in mfile. |
| dbclear in mfile at lineno@n | Removes the breakpoint set in the nthe anonymous function at line number lineno in mfile. |
| dbclear in mfile at subfun | Removes all breakpoints in subfunction subfun in mfile. |
dbclear if error ... formats are listed here:
| Format | Action |
|---|---|
| dbclear if error | Removes the breakpoints set using the dbstop if error and dbstop if error identifier statements. |
| dbclear if error identifier | Removes the breakpoint set using dbstop if error identifier for the specified identifier. Running this produces an error if dbstop if error or dbstop if error all is set. |
| dbclear if caught error | Removes the breakpoints set using the dbstop if caught error and dbstop if caught error identifier statements. |
| dbclear if caught error identifier | Removes the breakpoints set using the dbstop if caught error identifier statement for the specified identifier. Running this produces an error if dbstop if caught error or dbstop if caught error all is set. |
dbclear if warning ... formats are listed here:
| dbclear if warning | Removes the breakpoints set using the dbstop if warning and dbstop if warning identifier statements. |
| dbclear if warning identifier | Removes the breakpoint set using dbstop if warning identifier for the specified identifier. Running this produces an error if dbstop if warning or dbstop if warning all is set. |
dbclear if naninf removes the breakpoint set by dbstop if naninf or dbstop if infnan.
dbclear if infnan removes the breakpoint set by dbstop if infnan or dbstop if naninf.
The at and in keywords are optional.
In the syntax, mfile can be an M-file, or the path to a function within a file. For example
dbclear in foo>myfun
clears the breakpoint at the myfun function in the file foo.m on Windows platforms.
dbcont, dbdown, dbquit, dbstack, dbstatus, dbstep, dbstop, dbtype, dbup, filemarker,partialpath
![]() | datevec | dbcont | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |