Reverse Debugging in Qt Creator
-
wrote on 6 Jun 2010, 23:35 last edited by
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-cvsWhich means that theoretically reverse debugging is available...
Did anybody have success in doing reverse debugging in Qt Creator?
-
wrote on 2 Jul 2010, 19:23 last edited by
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.
-
wrote on 3 Jul 2010, 01:01 last edited by
Thanks Tobias. I found the bug in my code already. :)
-
wrote on 29 Aug 2010, 11:18 last edited by
[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.
-
wrote on 24 Dec 2016, 02:48 last edited by
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?
-
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?
wrote on 12 Jun 2017, 10:08 last edited by@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
-
@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.