Go to main content
Oracle® Developer Studio 12.6: Debugging a Program with dbx

Exit Print View

Updated: June 2017
 
 

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, infile argument, or infunction argument create sets of breakpoints. If the line you specify in the clear 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 re-establishes all the breakpoints.

Syntax

clear [filename: line]

where:

line is the number of a source code line, such that all breakpoints are cleared at the specified line.

filename is the name of a source code file, such that all breakpoints at line line are cleared in the specified file.

If no file or line is specified, all breakpoints are cleared at the current stopping point.