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. Qt Creator debugger won't allow watched variables to be modified
Forum Update on Monday, May 27th 2025

Qt Creator debugger won't allow watched variables to be modified

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.7k 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.
  • P Offline
    P Offline
    PedroCaliente
    wrote on last edited by
    #1

    I'm using Qt Creator 2.3.1 to create an Ubuntu application with Qt 4.8.0. I'm building my application in debug mode, and have a set a few breakpoints. When a breakpoint gets hit, when I attempt to modify the value of a variable in the "Locals and Expressions" window, I'm able to change the text, but when I hit enter, it reverts to its original value.

    Same behavior for any type of variable. Also happens in the watch window.

    Ideas?

    Update: It seems to be some disconnect between Qt Creator and GDB. I'm able to issue GDB commands directly into the debugging log while at a breakpoint in Qt creator, which can modify variables no problem. It looks like Qt Creator isn't sending the proper commands when I try to modify variables in the UI.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      A natural first solution would be to try with newer Qt Creator version. Newest is 2.5.2.

      (Z(:^

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PedroCaliente
        wrote on last edited by
        #3

        Unfortunately, I'm locked into these versions. This is a legacy project for which this company had purchased a commercial Qt license. Their license expired and they require static linking. So I'm stuck with this unfortunately.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Qt Creator is a separate product... you can upgrade it without upgrading Qt itself, and with no costs (FOSS).

          (Z(:^

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PedroCaliente
            wrote on last edited by
            #5

            Ah, that I didn't know! I'm still feeling my way around the Qt licensing scheme, which isn't all that straightforward. I'll give it a whirl.

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Cheers. Hope this helps :)

              (Z(:^

              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