6.2.13 Displaying breakpoint and watchpoint information (info breakpoints command)
The info breakpoints command displays information about the breakpoints and watchpoints that have been set. The abbreviation for the info breakpoints command is i b. The following shows the format of the info breakpoints command:
info breakpoints[ breakpoint-or-watchpoint-number]
The info breakpoints command with a breakpoint or watchpoint number specified in the argument displays information about the specified breakpoint or watchpoint. If the argument is omitted, the command displays information about all breakpoints and watchpoints. The following shows the display format:
Num Type What number breakpoint/watchpoint file-name:line-number/variable-name ...
-
number: Sequence number of the breakpoint or watchpoint. The command displays a maximum of three digits left-justified.
-
file-name: File name of the job definition script.
-
line-number: For a breakpoint, the line number at which the breakpoint is set.
-
variable-name: For a watchpoint, the variable name specified in the watch command.
The following describes the info breakpoints command's processing.
- When the info breakpoints command argument is omitted
-
If at least one breakpoint or watchpoint has been set, the command displays information about all breakpoints and watchpoints.
If no breakpoint or watchpoint has been set, the command outputs a message.
- When the info breakpoints command argument is specified
-
-
breakpoint-or-watchpoint-number
If the specified number exists, the command displays information about the breakpoint or watchpoint corresponding to the specified number.
If the specified number does not exist, the command outputs an error message.
-
Other
The command outputs an error message.
-
- Notes:
-
-
A number that is specified in the argument must be 0 or a greater integer. Do not specify a plus sign (+) at the beginning.
-
If the specified number is outside the permitted value range for the int type, the command rounds it to the maximum value for the int type.
-
- Example of output
-
This example displays a breakpoint and a watchpoint.
Num Type What 1 breakpoint sample.ash:100 2 watchpoint rc