Sun Studio 12: Debugging a Program With dbx

clear Command

The clear command clears breakpoints. It is valid only in native mode.

Event handlers created using the stop command, trace command, or when command with the inclass argument, inmethod argument, or infunction argument create sets of breakpoints. If the line you specify in theclear command matches one of these breakpoints, only that breakpoint is cleared. Once cleared in this manner an individual breakpoint belonging to a set cannot be enabled again. However, disabling and then enabling the relevant event handler reestablishes all the breakpoints.



Clear all breakpoints at the current stopping point.

clear line

Clear all breakpoints at line.

clear filename:line

Clear all breakpoints at line in filename.


line is the number of a source code line.

filename is the name of a source code file.