Thursday, November 19, 2009

Stop Console Applications From Closing Immediately

This is something I should have Googled with Bing much earlier, but kept putting off. When executing a Console Application in Debug mode the console closes before you have time to see the results, however this can be avoided with any of the following:
  • "Start Without Debugging" CTRL-F5
  • Use Console.ReadLine()
  • Tick the option 'Redirect all Output Window text to the Immediate Window' under 'Debug > Options and Settings... > Debugging > General'

No comments: