Is there a way in Visual Studio (2008 if it matters) that I can, in debug/break mode, write the contents of a variable to a text/XML file?
The scenario is that I ha
Thanks to Richard's answer, this is working for me.
System.IO.File.WriteAllBytes(@"c:\Temp\temp.txt", myVar);
Make sure that C:\Temp exists.
C:\Temp
The reason for writing to a folder and not to the root C:\ is to avoid UnauthorizedAccessException when not running Visual Studio as administrator.
C:\
UnauthorizedAccessException