Progress
Debugger Guide
Removing Breakpoints
To remove breakpoints during a debugging session, you must enter either the CANCEL BREAK command to remove one or more specified breakpoints or the CANCEL ALL command with the BREAKS option to remove all of them.
Using the Procedure Name and Line Number
You can remove a single breakpoint by specifying the procedure name and line number with the CANCEL BREAK command. You must specify the procedure name exactly as you specified it in the BREAK command or Debug
Break option. If the procedure is inactive, you must specify the line number you used to set it. If the procedure is active, you can specify either the line number used to set it or, if different, the effective executable line.
If you set more than one breakpoint on nonexecutable lines that are effective for the same executable line, the SHOW BREAKS command reports multiple breakpoints on that same executable line. To cancel all breakpoints on that line, you must cancel each one using its effective executable line number, using each of the original specified line numbers, or using the ordinal breakpoint numbers (see the "Using Breakpoint Numbers" section).
For example, if line 7 is the first executable line of
arrmenu.p
and you set a breakpoint on lines 1, 3, and 5 to preventarrmenu.p
from breaking at line 7, you must cancel each breakpoint on lines 1, 3, and 5 or cancel the breakpoint on line 7 three times. Using the effective breakpoint line number cancels the breakpoints on the nonexecutable line numbers in the order they were set.Using Breakpoint Numbers
Specifying breakpoint numbers is the most efficient way to cancel one or more individual breakpoints with the CANCEL BREAK command. No two breakpoints have the same number. The following command cancels four breakpoints by number:
The BREAK command displays the number of each breakpoint when you set it. You can also identify the numbers of all current breakpoints using the SHOW BREAKS command. For more information, see the "Displaying Debugger Session Settings" section.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |