Setting Complex Breakpoints

Set a complex breakpoint on the Code tab of the Create Breakpoint dialog box. Enter its location into theLocation field. Optionally, you can specify a Condition, an Action, and a Skip number.

To set a complex breakpoint:

  1. Select Debug > Create Breakpoint …

    The Create Breakpoint dialog box appears.

  2. Under Type, select Breakpoint.
  3. In the Location field, enter one of the following expressions:
  4. Optionally, define a condition for the breakpoint in the Condition field, such as choice == 2. The condition is evaluated after the stop of the application at the breakpoint that is specified in the Location field. If the condition is not fulfilled, the application continues executing. For valid conditions see Set Breakpoint Dialog Box: Code Tab.
  5. Optionally, enter a debugger command into the Action field. When the breakpoint stops execution, the commands is executed.
  6. Optionally, define a skip number in the Skip Count field. The skip count number defines the number of times a breakpoint hit is ignored. For example, a breakpoint with the skip number 2 would stop execution when encountered for the third time.
  7. Optionally, check Continue. The target application continues executing after processing the action. If Continue is unchecked, it will stop.
  8. Optionally, if you want the breakpoint to stop the execution only when specific threads are executed, enter the thread IDs of these threads into the Thread Filter field. Specify thread IDs with integer values, as shown in the Threads window. Separate multiple thread IDs with commas. To specify thread sets, use the following syntax: t:[start_id:end_id]. Alternatively, click Browse to select one or more thread sets.
  9. Click OK.

Note iconNote

The breakpoint appears at the beginning of the line. For example, a breakpoint at source code line 100 stops the application after line 99 executes.

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.