Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I tried to add an expression to the variables watch window and now my run terminates every time I run it
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 346 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kitfox
    wrote on last edited by kitfox
    #1

    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?

    K 1 Reply Last reply
    0
    • K kitfox

      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?

      K Offline
      K Offline
      kitfox
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved