我如何保存我的收藏在Visual Studio 2008 /打印值?我的、收藏、Visual、Studio

2023-09-06 08:26:35 作者:相思落无声

当我附上了Visual Studio 2008中的调试器,以我的Web服务器的过程中,我有时浏览我的收藏了大量的数据。假设我有字符串变量数组,我展开显示20个条目。看来,要保存这些值的唯一方法是复制和粘贴一次。我已经走了这么远,做一个屏幕截图,以便有值是什么(指后或打印硬拷贝)。

When I attach the Visual Studio 2008 debugger to my web server process, I sometimes browse a large amount of data in my watch list. Suppose I have an array of string variable that I expand to show 20 entries. It seems that the only way to save these values is to copy and paste them one at a time. I have gone so far as to do a screen-shot in order to have a record of what the values were (to refer to later or print a hard copy).

有一个简单的方法来保存和打印这些价值观?我熟悉的Visual Studio 2010旗舰版新的智能跟踪功能,但似乎矫枉过正用于这一目的。

Is there an easy way to save and print these values? I am familiar with the new "IntelliTrace" feature in Visual Studio 2010 Ultimate, but it seems overkill for this purpose.

我只想把像一个字符串数组,并将其保存以供以后参考一旦我停止调试器。

I just want to take something like an array of strings and save it for later reference once I've stopped the debugger.

什么是一个很好的办法做到这一点?

What's a good way to do this?

推荐答案

选择在监视窗口中的条目(或preSS 控制 + A )和preSS 控制 + C 。

Select the entries in the Watch window (or press Ctrl+A) and press Ctrl+C.