[英]How do I make the Console window show when a program is running in non-debug mode?
I'm writting this XNA game and in order to help me debug some problems, I'd like to see the output I'm writing to the Console in my code .. Problem is the Console window in Visual Studio 2008 will only show when I run the program in Debug mode .. And in this mode I can see the stuff I'm writing to the console in my code ... However I can't find any way to also force the console to be visible when I'm running the code in non-Debug mode .. 我正在编写此XNA游戏,并且为了帮助我调试一些问题,我想查看在代码中写入控制台的输出。问题是Visual Studio 2008中的“控制台”窗口仅在我在Debug模式下运行程序。在这种模式下,我可以在代码中看到正在写到控制台的内容...但是,我找不到任何方法也可以强制控制台在可见时可见。 m在非调试模式下运行代码。
Any suggestions ? 有什么建议么 ?
Why not just add a Console.ReadLine();
为什么不只添加Console.ReadLine();
to the section(s) of code that you would like to debug? 您要调试的代码部分?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.