Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there way to return previous state after step over in Visual C++ debug?

So when i want to move forward i can use f10/f11 but can i move to previous state? Not just previous position because if i just move or set cursor to previos position this not recovers values of variables. This is not possible?

like image 441
ratojakuf Avatar asked Sep 29 '22 23:09

ratojakuf


1 Answers

You can do it, if you are willing to use a different debugger.

GDB supports this feature. Using GDB with MS VS is left as an exercise for the reader & Google, but here are a few helpful links:

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

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

or perhaps this, but it's pricy http://visualgdb.com/

Note: I am assuming that your code is Windows specific. If not, and you really want this feature, set up a Linux VM and use GCC / GCB (and look into the DDD front end - which lets you examine linked structures visually enter image description here)

like image 195
Mawg says reinstate Monica Avatar answered Oct 06 '22 20:10

Mawg says reinstate Monica