Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Reverse Debugging in Qt Creator

Reverse Debugging in Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 6 Posters 8.6k 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.
  • A Offline
    A Offline
    alexbravo
    wrote on last edited by
    #1

    Does reverse debugging suppose to work in Qt Creator?
    When I debug with simulator and press F12 (Reverse Direction) and then press F10 (Step Over), I get following error dialog:

    Execution Error
    Cannot continue debugged process:
    Target child does not support this command.

    I'm using Nokia Qt SDK - beta release.

    Running C:\NokiaQtSDK\pythongdb\gdb-i686-pc-mingw32.exe shows this:
    GNU gdb (GDB) 7.1.0.20100329-cvs

    Which means that theoretically reverse debugging is available...

    Did anybody have success in doing reverse debugging in Qt Creator?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      I think a <a href="http://bugreports.qt.nokia.com/">bugreport</a> will get you an answer. AFAIK none of the debugger guys hang out here (yet:-).

      Please make sure to attach the output of the debugger log (the top left part of the debugger window IIRC, sorry, I shuffled my debugger stuff around;-). That is the communication between debugger and creator. Without that it is really impossible to tell what is going wrong.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexbravo
        wrote on last edited by
        #3

        Thanks Tobias. I found the bug in my code already. :)

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Duck
          wrote on last edited by
          #4

          [quote author="AlexBravo" date="1275867319"]Does reverse debugging suppose to work in Qt Creator?
          [/quote]

          It "works" insofar as Qt Creator passes the commands to the underlying gdb. However, gdb's "Reverse Debugging" implementation is very fragile and pretty slow (at least up to and including gdb 7.1) so that it is close to being useless in practice.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            daviddoria
            wrote on last edited by
            #5

            This is the first hit on Google for "step backwards gdb qtcreator", so even though it is 6 years old, perhaps someone can point to a more recent answer?

            D 1 Reply Last reply
            0
            • D daviddoria

              This is the first hit on Google for "step backwards gdb qtcreator", so even though it is 6 years old, perhaps someone can point to a more recent answer?

              D Offline
              D Offline
              DrEval
              wrote on last edited by
              #6

              @daviddoria I just got this working via something of a workaround, and posted an answer on Stack Exchange. Let's hope it gets implemented properly into QT Creator at some point.

              https://stackoverflow.com/questions/44440706/how-do-i-enable-reverse-debugging-in-qt-creator

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @DrEval Hi and welcome to devnet,

                You should head to the bug report system and see if there's anything related. If not please consider opening a feature request providing all the infos you can.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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