[Resolved] [2.0] System.Diagnostics.Debug
I am using visual c# epress edition. I want to use System.Diagnostics.Debug.WriteLine method to write some values durring runtime so I can monitor the values. I have the build type set on debug, but when I run my application, the code doesn't output anything to the immediate window like it should. Do you guys have any ideas on what could be wrong?
Re: [2.0] System.Diagnostics.Debug
I don't have the express edition, but I imagine it would be the same...
Debug statements are written to the output window, not the immediate window. Choose Debug | Windows | Output to show the output window.
Re: [2.0] System.Diagnostics.Debug
Nope, they don't appear there either. I have the professional edition at work and the debug statements output to the immediate window there.
Re: [2.0] System.Diagnostics.Debug
Odd. My debug statements definately go to the output window. You're running by hitting F5 right? and not shift-F5?
There's also an option under Tools | Options | Debugging you can check - it reads "Redirect all Output Window text to the immediate Window". Mine isn't checked - guessing yours is at work.
But if it's not going to either window, not sure where it's going, unless you starting without debugging.
Re: [2.0] System.Diagnostics.Debug
Well i'm not sure where it was going before, but when I turned on that option you mentioned, it is displayed in the immediate window now. Thanks for your help.