I probably should know this already, but I'm not sure, and I don't see it documented.
I often use System.Diagnostics.Debug.WriteLine during the development process to track changes to variables or exceptions when I debug code. This is intended to develop and understand what happens faster only during development. I usually either comment on the code or delete it when I go to production.
I am wondering what will happen if I forget to comment on the code. Say, for example, that during the development cycle, I track error information that can register the connection binding to the output window using Debug.Write Line. Obviously, this is normal, but I think if I live, if there is a risk here. Can someone connect a debugger to my executable executable and catch this output? Or is this what only produces output in Visual Studio?
What about switching from debugging to release? Does this code mean compiler when compiling for release?
David Oct 21 '09 at 13:55 2009-10-21 13:55
source share