Debug/output

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Kirk

    #1

    Debug/output

    Hi

    I am "playing" with some simple aspects of C# with Visual Studio. All I
    would like to know right now is how do I get the Console.Write method to
    write its output in the Visual Studio debug/output pane? At the moment my
    application creates a "command" window and writes output there (all by
    itself) - and said window closes itself when the application terminates. (So
    I guess somewhere in Visual Studio configuration there is an output
    redirection setting or something...?)

    Thanks,
    Peter


  • Bruce Wood

    #2
    Re: Debug/output

    What type of application is it? WinForms applications usually write
    Console.WriteLi ne output to the output pane. Console applications,
    logically, write them to the console window.

    I think there's a setting somewhere that will tell VS not to close the
    console window when done debugging, at least.

    Comment

    • Peter Kirk

      #3
      Re: Debug/output


      "Bruce Wood" <brucewood@cana da.com> skrev i en meddelelse
      news:1117212955 .354181.236500@ g47g2000cwa.goo glegroups.com.. .[color=blue]
      > What type of application is it? WinForms applications usually write
      > Console.WriteLi ne output to the output pane. Console applications,
      > logically, write them to the console window.
      >
      > I think there's a setting somewhere that will tell VS not to close the
      > console window when done debugging, at least.[/color]

      It is a "console" application - I just thought that as I had it running in
      debug mode via Visual Studio console output would be redirected to the
      output window in Visual Studio. Anyway, the simple solution was to add a
      "readline" to cause the window to stay popped up.

      Thanks,
      Peter


      Comment

      Working...