Does qt have a watch variable debugging function

c++, debugging, qt-creator

Solution

You can use data breakpoints for this. You need:

- Right-click in the Breakpoints view to open the context menu, and select Add Breakpoint.

- In the Breakpoint type field, select Break on data access at fixed address.

- In the Address field, specify the address of the memory block.

- Select OK.

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

You can read more here Qt Documentation: Interacting with the Debugger

Problem

I try to observe when a member of a class get changed in QTCreator 5.2 but I do not find any relevant function like "watch variable" in Eclipse. Does anyone know weather there's any alternative way to watch a variable's value changes?

Original source