Results 1 to 5 of 5

Thread: [Resolved] [2.0] System.Diagnostics.Debug

  1. #1

    Thread Starter
    Hyperactive Member Arrow_Raider's Avatar
    Join Date
    Dec 2001
    Location
    AVR Lovers Club
    Posts
    423

    Resolved [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.

  2. #2
    Lively Member
    Join Date
    Oct 2006
    Posts
    71

    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.

  3. #3

    Thread Starter
    Hyperactive Member Arrow_Raider's Avatar
    Join Date
    Dec 2001
    Location
    AVR Lovers Club
    Posts
    423

    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.

  4. #4
    Lively Member
    Join Date
    Oct 2006
    Posts
    71

    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.

  5. #5

    Thread Starter
    Hyperactive Member Arrow_Raider's Avatar
    Join Date
    Dec 2001
    Location
    AVR Lovers Club
    Posts
    423

    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
  •  



Click Here to Expand Forum to Full Width