Cannot see values of variables when debugging
-
Hello,
I have installed Qt 5.12.0, QtCreator 4.8.0 and Visual Studio 2017. I build 32-bit application with kit Desktop Qt 5.12.0 MSVC2017 32-bit.I see values of many variables <not accessible> or <optimized out>. I checked compiler switches and see that compiler uses -Od and -Zi (disable optimization and setting debug format) so it is right. When I start debug built version without QtCreator and attach Visual Studio debugger then I see values of all variables so full debug information is present.
I tried to set path to Debug folder of my application with application's *.pdb into Options->Debugger->CDB Paths. It does not help.
Why QtCreator does not display values of variables ? -
@PetQter I found solution. Tools->Options->Debugger->Locals & Expressions, setting: "Use Debugging Helper". When I tried to set it I can see local variables. But when I unset it again still I can see local variables.
So it seems that on first setting of this checkbox invokes some permanent change.
Weird but functional. -
Hi,
It's indeed surprising...
Anyway, thanks for sharing !
Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)