|
-
Nov 10th, 2006, 10:02 AM
#1
Thread Starter
Hyperactive Member
[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?
Last edited by Arrow_Raider; Nov 10th, 2006 at 12:34 PM.
My monkey wearing the fedora points and laughs at you.
-
Nov 10th, 2006, 11:34 AM
#2
Lively Member
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.
-
Nov 10th, 2006, 11:36 AM
#3
Thread Starter
Hyperactive Member
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.
My monkey wearing the fedora points and laughs at you.
-
Nov 10th, 2006, 11:49 AM
#4
Lively Member
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.
-
Nov 10th, 2006, 12:33 PM
#5
Thread Starter
Hyperactive Member
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.
My monkey wearing the fedora points and laughs at you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|