1

Visual Studio 2013 closes console window in after my C++ console program has finished. Is it possible to ask for a key press instead, while

  • not modifying the source code of the program. (Writing system("pause") surrounded by the proper #ifs at the end of every program is not a solution I call elegant.)
  • running the program in debug mode. (The "magic" key Ctrl+F5 works, but that runs the program without debugging)
  • not using breakpoints. (So far the best solution is to put a breakpoint at the end of the main function but that solution is not really convenient either.)

I know that this has been asked many times before (like here) but neither answers satisfy the requirements above.

If there is no way to do this than I'm interested in why the feature was removed as clearly a lot of users miss it and say that it worked in previous versions. Also it seems that there are some users who does not want it. A configuration option or plugin would be nice.

Community
  • 1
  • 1
Csq
  • 5,775
  • 6
  • 26
  • 39
  • 1
    What about a break point at the `main()` functions `return` statement of last closing brace `}`? – πάντα ῥεῖ May 26 '14 at 10:03
  • That's the working solution I mention in the third bullet point but it requires too many clicks to close the application in my opinion. – Csq May 26 '14 at 10:08

0 Answers0