Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

I tried to add an expression to the variables watch window and now my run terminates every time I run it



  • During a recent debugging session in Qt Creator, I tried to see if I could check the data in a singleton I wrote. I right clicked in the area that shows the values of variables and chose something like "Add Expression" from the dropdown menu. I typed in MySingleton::instance() and pressed enter. Immediately my session exited with the warning message that "GDB process has terminated". I tried running it again and I got the same message as soon as my app launched. I restarted Qt Creator and the same thing still happens.

    I need to somehow remove that expression so that I can run my app from within Qt Creator. Since that window only appears when I start a debugging session and my debugging session immediately terminates, I have no idea how to remove it. Is there a way?



  • @kitfox I found a workaround. I ran a different project in debug mode which allowed me to edit the expressions I had entered in the watch window. It would be nice if Qt Creator could handle this gracefully within the original project, though.



  • @kitfox I found a workaround. I ran a different project in debug mode which allowed me to edit the expressions I had entered in the watch window. It would be nice if Qt Creator could handle this gracefully within the original project, though.


Log in to reply