Create Breakpoint Dialog Box: Data Tab

Set a data breakpoint that stops program execution when a specific memory area is accessed.

The debugger remembers the data breakpoint and stops the program execution every time the specific memory area is accessed. Data breakpoints are also referred to as watchpoints.

Menu

Debug > Create Breakpoint...

Toolbar

Not available.

Location

Enter an expression into the Location field. When the application reaches the expression, execution stops immediately. You can specify the following expressions in the Location field:

var_name or "filename":var_name

or

"filename":scope::var_name

or

::scope::var_name

or

partial_scope::var_name

A variable visible in the current scope or a global variable.

For example: foo_array

You can click the Browse button to browse for a symbol. See also Symbol Selector Dialog Box: Simple Search Tab.

*address

An address.

For example: *0x000080f8

Condition

When you define a condition, the debugger evaluates this condition after execution stops at the specified location. If the result is FALSE (zero), the program continues executing. In this case, an optional skip count does not change. The condition can be any Boolean expression in the current programming language. For example: choice==2

Action

If you want the debugger to execute a command when the program execution stops at a breakpoint, enter this command into the Action field.

Thread Filter

When you enter a thread ID into the Thread Filter field, execution only stops when the application accesses the breakpoint in this particular thread. The thread ID must be an integer value. You can enter more than one thread ID, separated by commas.

See also Threads Window.

Skip Count

You can enter a positive integer as skip count number. The skip count 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. First the debugger checks the condition, then the skip count number.

Access

Access specifies on which type of access to stop execution. The default value is Write.

Continue

When you check Continue, the target program continues executing after processing the Actions list. Otherwise, it stops.

Browse

Click Browse to open the Symbol Selector displaying a list of the known symbols. See also Symbol Selector Dialog Box: Simple Search Tab.

OK Cancel

Click OK to create the data breakpoint, or Cancel to cancel the operation.

Apply

If you want to set more than one breakpoint, click the Apply button to set a breakpoint and to leave the Set Breakpoint dialog box open.

See Also


Submit feedback on this help topic

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