dbclear
Remove breakpoints during debugging.
📝Syntax
dbclear
dbclear all
dbclear in file
dbclear all in file
dbclear in file at location
dbclear if error
dbclear if caught error
📥Input Arguments
Parameter Description
file File name where breakpoints should be cleared, specified as a character vector or string scalar. A filemarker (>) can be used to specify a local function.
location Line number of the breakpoint to clear. The line is adjusted the same way dbstop adjusts it, so the line used with dbstop clears the breakpoint.
📄Description

dbclear removes breakpoints set for debugging. You can clear all breakpoints, breakpoints in a specific file, breakpoints at a specific location, or the error breakpoints.

dbclear and dbclear all remove all breakpoints in all files, including dbstop if error and dbstop if caught error.

dbclear in file and dbclear all in file remove all breakpoints in the specified file; the error breakpoints are kept.

dbclear in file at location removes the breakpoint at the specified location in the file.

dbclear if error and dbclear if caught error remove the matching error breakpoint.

Nothing is reported when no breakpoint matches.

💡Examples
Clear all breakpoints in a file.
dbstop in buggy at 2
dbstop in buggy at 3
dbstatus
dbclear in buggy
dbstatus
Clear a breakpoint at a specific location.
dbstop in buggy at 2
dbstop in buggy at 3
dbclear in buggy at 3
dbstatus
Stop pausing on errors.
dbstop if error
dbstatus
dbclear if error
dbstatus
🔗See Also
dbstopdbstatusdbquitdbstack
🕔Version History
Version Description
1.16.0 initial version
2.0.0 dbclear all in file, dbclear if error, dbclear if caught error; line adjustment; silent when no breakpoint matches
Edit this page on GitHub