Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 "Press any key to continue . . ." does not show [closed]

"Press any key to continue" wordings do not show in console when my app finishes execution.

I know this prompt should be showing in "start without debugging" mode, but it does not! As soon as I enter any parameter and hit enter, console window closes without showing the output...

What should I do to make the console app prompt me for any key when it finishes execution?

like image 309
not_so_secret_agent Avatar asked Feb 07 '12 11:02

not_so_secret_agent


1 Answers

According to comments about a VS2010 bug, you should get desired behavior if you set the subsystem property of the project to "console". Go to menu Project > Properties > in new window select Configuration Properties > Linker > System > property SubSystem should have the value Console (/SUBSYSTEM:CONSOLE)

like image 111
Dialecticus Avatar answered Oct 16 '22 08:10

Dialecticus