Reverse Debugging in Qt Creator
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:
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) 184.108.40.20600329-cvs
Which means that theoretically reverse debugging is available...
Did anybody have success in doing reverse debugging in Qt Creator?
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.
Thanks Tobias. I found the bug in my code already. :)
[quote author="AlexBravo" date="1275867319"]Does reverse debugging suppose to work in Qt Creator?
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.
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?
@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.
@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.