如何保存 Visual Studio C++ 调试会话的状态? [英] How to save state of Visual Studio C++ debugging session?

查看:26
本文介绍了如何保存 Visual Studio C++ 调试会话的状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio C++ 2013.我正在运行一个数字处理程序,因此它可以线性/可预测地进行.但是,我有一个测试需要几个小时才能运行,然后由于我的代码中的逻辑错误而断言.我可以在崩溃前得到一个断点,但我不能不从头再来.

I am using Visual Studio C++ 2013. I am running a number cruncher program so it proceeds linearly/predictably. However I have a test which takes several hours to run, before asserting due to logic error in my code. I can get a breakpoint before the crash, but I can't step backwards without starting all over again.

有什么办法可以让 Visual Studio 保存我的程序状态,以便我可以在那个时候重新启动?

Is there any way to get Visual Studio to save the state of my program, so that I can restart at that point again?

程序状态非常复杂,我需要做很多工作才能自己将所有状态保存到文件中以备后用.

The program state is very complicated and it would take a lot of work for me to save all the state to files myself for resuming later.

推荐答案

您可以考虑虚拟计算机.您可以制作他们的快照并保存它们.这可能有点矫枉过正,但保证有效.

You may consider virtual computers. You can make their snapshots and save them. This may be an overkill, but is guaranteed to work.

这篇关于如何保存 Visual Studio C++ 调试会话的状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆