views:

25

answers:

1

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).

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?

+2  A: 

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

SLaks
23 seconds...dammit. I defer to your trigger finger. I am Red Dead defeated.
Jeff Yates
Thanks! Somehow, I didn't see that you can select multiple values and copy the whole thing.
Rice Flour Cookies
Then you should accept this answer.
SLaks
Yes, I should. For some reason, my internet connection here keeps flaking out when voting on and accepting answers.
Rice Flour Cookies