Variables in Locals and Expressions not accessible in QT Creator

Viewed 10924

If I try to debug my C++ program in QT Creator the Locals and Expressions window shows me the variables in the program. However all the values show "< not accessible >".

Screenshot:

enter image description here

How do I get the values to show? I can print the values out with cout so I know they are initialized.

Edit: It seems like it only applies to strings

Specs/other:

  • Windows 8, 64bit
  • QT 5.2.0
  • MinGW 32bit, I think 4.8
  • QT Creator 3.0.0
2 Answers
Related