本文介绍了IDE外部的外部终端/调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用Xamarin Studio,并从VS迁移到它,但是当我尝试运行控制台应用程序(此时加载的唯一一个)时,失败并在Console.Clear()中引发异常(假设我不能在集成调试器中这样做,那么我认为解决它的一种方法是编译它并运行它,就像Visual Studio一样,并在IDE之外调试应用程序,但我无法弄清楚怎么样。有人能告诉我如何解决这个问题吗?谢谢。

I'm starting to use Xamarin Studio, and migrating from VS to it, but when I try to run a console application (the unique one loaded at the moment), fails and throws an exception in Console.Clear() (Supposing I can't do that in an integrated debugger), then i thought that one way to solve it was by compiling it and running it, like Visual Studio does, and Debug the application outside the IDE, but I can't figure out how. Could someone tell me how to solve this problem? Thanks.

编辑:由于任何原因,它在选择Release时在嵌入式窗口中运行,但它无法读取输入,因此它卡住了。

For any reason, it runs in the embedded window when selecting Release, but it can't read input, so it gets stuck.

推荐答案

您需要设置项目选项,让它在外部控制台中运行您的控制台应用程序:

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

项目选项/运行/常规/在外部控制台上运行

Project Options / Run / General / Run on external console

项目选项 / 运行 / 配置 / 默认 / 在外部控制台上运行

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

这篇关于IDE外部的外部终端/调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 10:56