Set data breakpoints | Qt Creator Documentation

- Qt Creator Documentation
- Set data breakpoints
- Qt Creator 17.0.1

How To

# Set data breakpoints

A data breakpoint stops the application when data is read or written at the specified address.

To set a data breakpoint at an address:

1. In the Breakpoint Preset or Breakpoints view, select Add Breakpoint in the context menu.

2. In Breakpoint type, select Break on data access at fixed address.
3. In Address, specify the address of the memory block.
4. Select OK.

If the address is displayed in the Locals or Expressions view, you can select Add Data Breakpoint at Object's Address in the context menu to set the data breakpoint.

Data breakpoints will be disabled when the debugged application exits, as it is unlikely that the used addresses will stay the same at the next application launch. If you really want a data breakpoint to be active again, re-enable it manually.

See also How To: Debug, Debugging, Debuggers, and Debugger.

How To