QT Creator 12 Debug Locals (ui)
-
I am following along with a tutorial @ academy.qt.io (Getting Started With Qt Creator (10 of 12): Debugging(https://www.youtube.com/watch?v=EhJ1eV_6RH8&t=202s&ab_channel=QtGroup)). In the tutorial they access the object locals for the Ui::MainWindow object, but when I try the same, it is like the object doesn't exist in the locals, but I am able to assign the "ui->lineEdit->text()" to the QString variable text.
Tutorial Locals view:
My Locals view:
I feel like the compiler is optimizing away the object, since it only contains a QString, so maybe it is a complier flags issue?...
But I've tried the following solutions:
"Load system GDB pretty printers" - Didn't do anything...
"Use Debugging Helpers" - Didn't do anything...
"Change Value Display Format" - Nothing...
"Uncheck Shadow Build" - Option not available in QT Creator 12?
"Delete the Build files and rebuild" - Problem persistedI thought that maybe the object didn't exist, but I referenced it again to a new QString AFTER the message box break, and I was able to assign it. I read that the "ui_MainWindow.h" file is generated by QT/CMake(Still not sure how this works), so the file just isn't linked to the debugger, which makes the object un-interpretable by Locals? I find it frustrating that I can't figure this out and I need to move on.
System: Windows 11
QT Creator 12
QT 6.6.0
CMake -