Conditional Breakpoints

Project Builder stops at a conditional breakpoint only if the breakpoint's condition is true.

To attach a condition to a breakpoint:

  1. Start the debugger by clicking the spray can icon, click the Debug tab, and click the triangle beside Consoles.
  2. Enter condition <bp-id> <cond> at the GDB prompt.
    <bp-id> is the breakpoint's ID number, which you can find in the breakpoint list. <cond> is a valid boolean expression in the language you're debugging.
    For example, condition 3 (ptr==nil) stops at the breakpoint number 3 only if ptr is nil.

Note that while Project Builder saves your breakpoints between debugging sessions, it does not save ignore information or anything else enter at the GDB command-line.