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. Can I reverse debugging ?
QtWS25 Last Chance

Can I reverse debugging ?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 502 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
    Anonymous_Banned275
    wrote on last edited by
    #1

    I can pseudo step thru debug - using preassigned break points and "F5".

    Is there a way to "go back to previous break point " ?

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

      Hi,

      Since you are on Linux, take a look at this gdb announcement.

      Note that I haven't used that option in gdb so I can't tell you more about it.

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

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Since you are on Linux, take a look at this gdb announcement.

        Note that I haven't used that option in gdb so I can't tell you more about it.

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @SGaist Good news - it was "in works in 2009 " ....

        Beginning with the 7.0 release in September 2009, gdb now includes support for a whole new way of debugging called "reverse debugging" -- meaning that gdb can allow you to "step" or "continue" your program backward in "time", reverting it to an earlier execution state.

        So - real question - in QT - where to instruct "gdb" TODAY - end of 2021 ? to accomplish " reverse debug ' ?
        Any hints would help - option what ?

        A 1 Reply Last reply
        0
        • A Anonymous_Banned275

          @SGaist Good news - it was "in works in 2009 " ....

          Beginning with the 7.0 release in September 2009, gdb now includes support for a whole new way of debugging called "reverse debugging" -- meaning that gdb can allow you to "step" or "continue" your program backward in "time", reverting it to an earlier execution state.

          So - real question - in QT - where to instruct "gdb" TODAY - end of 2021 ? to accomplish " reverse debug ' ?
          Any hints would help - option what ?

          A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by
          #4

          @AnneRanch

          Can anybody help to update this ?

          Start debugging in QT Creator as normal, stopping near the the code you wish to reverse debug (via a breakpoint etc).
          Enable the Window->Views->Debugger Log menu option.

          Cannot find the above
          The visible (Window) options seems to be only for edit

          At the bottom of the left pane which appears, type record next to the command prompt.
          Continue debugging as normal using the QT Creator UI (or the command prompt).
          When you want to perform a reverse step (rs), reverse next (rn) , reverse continue (rc) etc command, just type it into the command prompt. The UI should reflect the results of these commands as usual.

          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