You copied the Doc URL to your clipboard.

Pending breakpoints and watchpoints

Breakpoints and watchpoints can be set when debug information is available. Pending breakpoints and watchpoints however, enable you to set breakpoints and watchpoints before the associated debug information is available.

The debugger automatically re-evaluates all pending breakpoints and watchpoints when debug information changes. Those with addresses that can be resolved are set and the others remain pending.

In the Breakpoints view you can force the resolution of a pending breakpoint or watchpoint. For example, this might be useful if you have manually modified the shared library search paths. To do this:

  1. Right-click on the pending breakpoint or watchpoint that you want to resolve.

  2. Click on Resolve to attempt to find the address and set the breakpoint or watchpoint.

To manually set a pendable breakpoint or watchpoint you can use the -p option with any of these commands, advance, awatch, break, hbreak, rwatch, tbreak, thbreak, watch. You can enter debugger commands in the Commands view.

For example:

break -p lib.c:20         # Sets a pending breakpoint at line 20 in lib.c
awatch -p *0x80D4         # Sets a pending read/write watchpoint on address 0x80D4