Where is the console window?

I'm new to c# express, but I have want to know where the console window is. I have seen in some tutorials that a console windows pop up and shows the results of your code when you run it, but I can't seem to get his window. For example I try the "Hello, World!" example, I type in the code I run it, a couple of things pop up quickly and go away but I don't see the text "Hello, World!" anywhere. In the tutorial it is shown down the bottom Could somebody please help me in locating this.


Answer this question

Where is the console window?

  • dtchinh

    Add this at the end of your Main() method.

    #if DEBUG
    Console
    .ReadKey();
    #endif

    This will pause at the end of the program, but only in the debug build so the executable for release will not pause.



  • adtyerheryh

    you are welcome

  • whatever 1942

    hi,

    i want to add something to what Andreas said ,

    1) you can use CTRL + F5 so it will run your application without debuging and will ask you to press anykey to close the console window

    2) its equivalent to the first , click tool menu >> customize >> commands tab >> debug catigory >> drag start without debugging to your toolbar

    3) add console.readline(); to the end of your code when you use normal debugging

    hope this helps



  • GrissomA

    Thanks for that. It works, I can see my stuff now. Thankyou.

  • Where is the console window?