4

when I press Start to run my application in VS 2017 Community my Output window disappears. (I use it for i.e. Debug.WriteLine().)
How to prevent this?

P.S. The output window I`m refering to (not the command line window!): The output window

Thanks
~Julius

Community
  • 1
  • 1

4 Answers4

4

After starting your application (debug mode), click View > Output (Ctrl + Alt + O) to show the output window. Stop your application and restart Visual Studio. Next time you run your application the output window should be visible automatically because Visual Studio remembers your opened windows in debug mode.

Martin D.
  • 1,950
  • 3
  • 23
  • 33
  • 1
    This is the correct guide! This answer should be [Accept it as an Answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) – Joy Aug 03 '18 at 09:11
  • 1
    It works, just wanted to clarify for others that it also works for the "Start" button. –  Aug 03 '18 at 20:09
  • 1
    I just installed VS2022 and the output window wasn't displayed by default while running the application in debug mode. After an hour of searching, this was the solution. Thanks @Martin D. – Rob May 14 '22 at 15:39
  • @Joy nah, my issue was the docking setting. if restarting your application solves this problem, it sounds more like a bug in their app. – dtc Jul 22 '23 at 17:59
2

Prevent it from autohiding using the 'Auto hide' icon in the right top corner (center of the three) of the Output window. That way it will stay docked.

Rob Bos
  • 1,320
  • 1
  • 10
  • 25
0

You can make it a docked tab before running your program

kennyozordi
  • 21
  • 1
  • 2
0

On Menu Bar: Tools -> Options

A Pop-up window appears:

Debugging -> General -> Automatically close the console(scroll down to last)

Check the box and close

It applied to projects for visual studio.

Press Any Key to Continue...

Shakti Pravesh
  • 91
  • 3
  • 12