如何将Visual Studio中监视窗口的内容复制并复制到文件中(其中包含分支信息) [英] How to replicate and copy the contents of watch window in Visual studio into a file (With the branching info being present in it)

查看:551
本文介绍了如何将Visual Studio中监视窗口的内容复制并复制到文件中(其中包含分支信息)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2008调试C ++.用于调试的监视窗口将所有动态值存储在各种对象,数组,变量等中.

I am debugging C++ using VS2008. The watch window used for debugging stores all the dynamic values in various objects, arrays, variables etc.

我想将此监视窗口上的全部内容复制到一个文件中,以便可以将调试上下文转发给其他人.

I want to copy the entire contents on this watch window into a file so that I can forward the debugging context to someone else.

如果我只选择全部(CTRL + A),然后将内容粘贴到文件中,那么我将不会获得分支信息(即像对象之类的信息中可能包含各种子对象).

If I just selct all (CTRL + A), and paste the contents in a file then i wont get the branching information (i.e info like an object might have various sub-objects in it).

任何人都可以让我知道如何在VS2008中做到这一点.

Can anyone kindly let me know how to do this in VS2008.

先谢谢了.

推荐答案

如果要包括分支信息,则必须手动扩展每个节点.当您使用 CTRL + A CTRL + C 时,剪贴板将仅包含监视窗口中当前可见的内容.

If you want to include the branching information, you have to manually expand each node. When you use CTRL+A and CTRL+C, the clipboard will contain only what is currently visible in the watch window.

这篇关于如何将Visual Studio中监视窗口的内容复制并复制到文件中(其中包含分支信息)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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