How Do I Debug the Console Output? - DOTNET

This is a discussion on How Do I Debug the Console Output? - DOTNET ; I'm trying to debug a console application, but I can't see the console output. I've seen many references which say that console output is supposed to appear on the Output window when the application is run in Debug mode. However, ...

+ Reply to Thread
Results 1 to 4 of 4

How Do I Debug the Console Output?

  1. Default How Do I Debug the Console Output?

    I'm trying to debug a console application, but I can't see the console
    output. I've seen many references which say that console output is
    supposed to appear on the Output window when the application is run in
    Debug mode. However, I just can't get that to work.

    I'm using Visual Studio 2005. I've confirmed that my application is
    compiled as a console application, and that I'm running in Debug mode.
    To investigate this issue, I've reduced the entire application to 5
    lines:

    Module Module1
    Sub Main()
    Console.Write("Test")
    End Sub
    End Module

    Why don't I see "Test" on the Output window, and what must I do to see
    it somewhere?


    -TC


  2. Default Re: How Do I Debug the Console Output?


    "TC" <golemdanube@yahoo.com> wrote in message
    news:1183823127.907041.155610@e9g2000prf.googlegroups.com...
    > I'm trying to debug a console application, but I can't see the console
    > output. I've seen many references which say that console output is
    > supposed to appear on the Output window when the application is run in
    > Debug mode. However, I just can't get that to work.
    >
    > I'm using Visual Studio 2005. I've confirmed that my application is
    > compiled as a console application, and that I'm running in Debug mode.
    > To investigate this issue, I've reduced the entire application to 5
    > lines:
    >
    > Module Module1
    > Sub Main()
    > Console.Write("Test")
    > End Sub
    > End Module
    >
    > Why don't I see "Test" on the Output window, and what must I do to see
    > it somewhere?
    >
    >
    > -TC
    >

    Do you mean the console window? Console output will not be displayed in the
    VS 2005 Output Window.
    You need to add some code that will keep the console window open after your
    write. As it is now, the application ends and the console window closes
    before you see the output.
    You could add a Console.Read() after the Write to pause your program to wait
    for input to keep the console window open so you could see it.


  3. Default Re: How Do I Debug the Console Output?


    The only time I have seen a Console Application start directing output to
    the IDE Output window was when the application was using threading. It was a
    PITA as I never did figure out why it would start using the Output window
    while I was debugging. I had to reboot the machine to make it go back to the
    IDE and the DOS windows where I wanted to debug from.

    The link may help

    http://www.google.com/search?hl=en&q...ET&btnG=Search


    "TC" <golemdanube@yahoo.com> wrote in message
    news:1183823127.907041.155610@e9g2000prf.googlegroups.com...
    > I'm trying to debug a console application, but I can't see the console
    > output. I've seen many references which say that console output is
    > supposed to appear on the Output window when the application is run in
    > Debug mode. However, I just can't get that to work.
    >
    > I'm using Visual Studio 2005. I've confirmed that my application is
    > compiled as a console application, and that I'm running in Debug mode.
    > To investigate this issue, I've reduced the entire application to 5
    > lines:
    >
    > Module Module1
    > Sub Main()
    > Console.Write("Test")
    > End Sub
    > End Module
    >
    > Why don't I see "Test" on the Output window, and what must I do to see
    > it somewhere?
    >
    >
    > -TC
    >



  4. Default Re: How Do I Debug the Console Output?

    On Jul 7, 2:05 pm, "Mr. Arnold" <MR. Arn...@Arnold.com> wrote:
    > The only time I have seen a Console Application start directing output to
    > the IDE Output window was when the application was using threading. It was a
    > PITA as I never did figure out why it would start using the Output window
    > while I was debugging. I had to reboot the machine to make it go back to the
    > IDE and the DOS windows where I wanted to debug from.
    >
    > The link may help
    >
    > http://www.google.com/search?hl=en&q...pplication+out...
    >
    > "TC" <golemdan...@yahoo.com> wrote in message
    >
    > news:1183823127.907041.155610@e9g2000prf.googlegroups.com...
    >
    >
    >
    > > I'm trying to debug a console application, but I can't see the console
    > > output. I've seen many references which say that console output is
    > > supposed to appear on the Output window when the application is run in
    > > Debug mode. However, I just can't get that to work.

    >
    > > I'm using Visual Studio 2005. I've confirmed that my application is
    > > compiled as a console application, and that I'm running in Debug mode.
    > > To investigate this issue, I've reduced the entire application to 5
    > > lines:

    >
    > > Module Module1
    > > Sub Main()
    > > Console.Write("Test")
    > > End Sub
    > > End Module

    >
    > > Why don't I see "Test" on the Output window, and what must I do to see
    > > it somewhere?

    >
    > > -TC- Hide quoted text -

    >
    > - Show quoted text -


    Thanks for the replies. Apparently, I was misinformed. I was told that
    in Debug mode, Visual Studio somehow echoes the console output in a
    Visual Studio window. Since that isn't the case, I will rely on other
    debugging techniques.

    -TC


+ Reply to Thread

Similar Threads

  1. Console output
    By Application Development in forum CSharp
    Replies: 3
    Last Post: 08-06-2007, 08:55 AM
  2. No console output
    By Application Development in forum xharbour
    Replies: 0
    Last Post: 08-01-2007, 05:24 AM
  3. No console output
    By Application Development in forum xharbour
    Replies: 0
    Last Post: 08-01-2007, 05:20 AM
  4. how to control position of output values on output console
    By Application Development in forum c++
    Replies: 3
    Last Post: 07-19-2007, 09:38 AM
  5. console output
    By Application Development in forum Perl
    Replies: 3
    Last Post: 06-23-2006, 10:02 AM