External Terminal / Debug outside the IDE

こ雲淡風輕ζ 提交于 2019-11-27 09:46:26
SushiHangover

You need to set the project option to have it run your console app in an external console:

Visual Studio For Mac:

Project Options / Run / Configurations / Default / Run on external console

Xamarin Studio:

Project Options / Run / General / Run on external console

You can fix this by running your program in a separate console window. It’s easy to do, although you need to follow the steps closely.

The first step is to bring up the project’s options window. You do this by finding your ‘Solution’ panel (normally on the left side of the Visual Studio window), and within that panel you much right-click on the project (this is pointed to by the “1” arrow in the below picture). Once that context menu appears you need to click on “Options”, which may be very close to the bottom)

Once the Project Options window appears, you should click on Run  Configurations  Default (next to the ‘1’ arrow, below), and then check off Run On External Console (next to the ‘2’ arrow, below)

Once that’s done you’ll need to click the ‘Ok’ button.

Everything should work fine at this point, but it’s always good to double-check: try running a program that asks you to type something and verify that it’s working correctly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!