Is there a way to return to the previous state after going into Visual C ++ debug?

So, when I want to move forward, I can use f10 / f11, but can I go to the previous state? Not only the previous position, because if I just move or set the cursor to the previous position, it does not restore the values ​​of the variables. It's impossible?

+5
source share
2 answers

You can do this if you want to use another debugger.

GDB supports this feature . Using GDB with MS VS remains an exercise for the reader and Google, but here are some useful links:

How can I use GDB from Visual Studio C ++ (Express) to debug GCC Makefile projects?

https://visualstudiogallery.msdn.microsoft.com/54B953C9-FD8A-4D6F-8C98-D0A1A786CBBE

or maybe it is, but it's pricy http://visualgdb.com/

Note. I assume your code is Windows specific. If not, and you really want this feature, set up a Linux virtual machine and use GCC / GCB (and look at the DDD front end - which allows you to visually view related structures enter image description here )

+3
source

There is no such function if it were indicated in the documents (and, probably, is available only for the corporate version):

http://msdn.microsoft.com/en-us/library/y740d9d3.aspx

also imagine how much memory is required for this, the debugger will have to use the state of the snapshot application at each step of the debugger. Closes what you need:

Time Travel Diagnostic Tracking Tool

I have never used it, nor is it a debugger addon.

+1
source

Source: https://habr.com/ru/post/1211263/


All Articles