当前位置: 动力学知识库 > 问答 > 编程问答 >

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?

网友答案:

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 )

网友答案:

There is no such feature, if there was then it would be listed in docs (and probably available to enterprise version only):

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

also imagine how much memory this would require, debugger would have to snapshot application state on each debugger step. The closes thing to what you want is:

Microsoft Time Travel Tracing Diagnostic Tool

I have never used it, also it is not a debugger addon.

分享给朋友:
您可能感兴趣的文章:
随机阅读: