如何在Visual Studio Ultimate中存储代码执行状态? [英] How to store the code execution states in Visual studio Ultimate?

查看:122
本文介绍了如何在Visual Studio Ultimate中存储代码执行状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



1.5小时后,我的项目达到了所需的断点.有没有一种方法可以在此处存储调试的完整状态(好像我可以随时返回到这一点而不必重新运行1.5小时).

我将继续前进,了解项目代码,并可能必须从断点重新运行(使用相同的代码和相同的输入).如果使用Visual Studio Ultimate,可以为我节省很多时间.

我的项目是用C ++开发的.

非常感谢,
Adithya

Hi,

My project hits the desired break point after 1.5 hrs. Is there a way I can store the complete state of the debug here (as if I can come back to this point anytime without having to rerun for another 1.5hrs).

I will have to go ahead, understand the project code and may have to rerun (with the same code and same inputs) from the break point. It will save me a lot of time if this is possible with Visual studio ultimate.

My project is developed in C++.

Thanks a lot,
Adithya

推荐答案

您将需要将工作集"序列化到磁盘.这可以通过BinaryFormatter序列化器来完成.
第一步是将所有工作集数据封装在一个地方.

参见本教程: http://www.jpreece.com/csharp/serialization-tutorial/ [ ^ ]

原始文章未指定语言,因此假定.net如后所述不是c ++.
You will need to serialize your "working set" to disk. This can be done with the BinaryFormatter serializer.

The first step is to encapsulate all your working set data in one place.

See this tutorial : http://www.jpreece.com/csharp/serialization-tutorial/[^]

EDIT : Original post did not specify the language, so .net was assumed not c++ as later stated.


这篇关于如何在Visual Studio Ultimate中存储代码执行状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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