Debugging with QtCreator doesn't work correctly
-
Hey, does anyone have an idea why debugging with QtCreator 9.0.2 (I have this issues for some months now and also tried other versions) is this weird https://streamable.com/si0ba9?
I compiled my application with-g3;-Og
but many values are optimised out, I cant set breakpoints on certain lines and my Expression Evaluator doesn't work.Thanks in advance
-
Hey, does anyone have an idea why debugging with QtCreator 9.0.2 (I have this issues for some months now and also tried other versions) is this weird https://streamable.com/si0ba9?
I compiled my application with-g3;-Og
but many values are optimised out, I cant set breakpoints on certain lines and my Expression Evaluator doesn't work.Thanks in advance
-
@Creapermann
Just to proof I have the same issues with QtCreator 9.0.1 in combination with Qt 5.15.12.
But I don't when I use Qt 5.15.9. May you try another Qt Version - just for verification.@lacuna
Sadly I am stuck with using the Qt version that my sytem comes with (since I currently need to use my system's libraries), which is Qt 5.15.8 -
C Christian Ehrlicher moved this topic from General and Desktop on
-
Hey, does anyone have an idea why debugging with QtCreator 9.0.2 (I have this issues for some months now and also tried other versions) is this weird https://streamable.com/si0ba9?
I compiled my application with-g3;-Og
but many values are optimised out, I cant set breakpoints on certain lines and my Expression Evaluator doesn't work.Thanks in advance
-
This cannot really depend on the Qt version. It can depend on the compiler flags and the actual version of compiler and debugger. Can you try -O0 -g and see whether it makes a difference? Also, which compiler and debugger is this using?
@andr
Using -O0 -g really makes a difference, the values are not optimized out anymore. I don't quite understand why this is, since I thought that g3 with -Og would create the most debug information, but at least it works now.The problem with the expression evaluator still remains though, it behaves the same as in the video. Do you have an idea why that might be?