Search code examples
visual-studiofilevisual-studio-2008visual-studio-debuggingwatch

How to replicate and copy the contents of watch window in Visual studio into a file (With the branching info being present in it)


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.

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

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

Thanks in advance.


Solution

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