MATLAB Function Reference Previous page   Next Page
dbclear

Clear breakpoints

Graphical Interface

As an alternative to the dbclear function, there are various ways to clear breakpoints using the Editor/Debugger.

Syntax

Description

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 removes all breakpoints in mfile.

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 nth anonymous function at line number lineno in mfile.

dbclear in mfile at subfun removes all breakpoints in subfunction subfun in mfile.

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. It is an error to clear this setting on a specific identifier if dbstop if caught error or dbstop if caught error all is set.

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. It is an error to clear this setting on a specific identifier if dbstop if error or dbstop if error all is set.

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. It is an error to clear this setting on a specific identifier if dbstop if warning or dbstop if warning all is set.

dbclear if naninf removes the breakpoint set by dbstop if naninf.

dbclear if infnan also removes the breakpoint set by dbstop if naninf.

Remarks

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

clears the breakpoint at the myfun function in the file foo.m.

See Also

dbcont, dbdown, dbquit, dbstack, dbstatus, dbstep, dbstop, dbtype, dbup, partialpath


Previous page  datevec dbcont Next page

© 1994-2005 The MathWorks, Inc.