Visual Studio 2015太快关闭了Python控制台

时间:2016-12-19 21:04:25

标签: python visual-studio visual-studio-2015

当我在VS 2015中测试Python脚本时,我可以在控制台上看到某种错误消息,然后在我查看之前控制台关闭。

我尝试使用调试(F5)和不使用(Ctrl-F5)运行它。

在脚本的最后一行中加入某种延迟似乎不会改变事情(不足为奇,因为我确信脚本没有执行那么远。)

我看过这里Preventing console window from closing on Visual Studio C/C++ Console application

有些答案建议在此处更改设置:

Properties>Configuration Properties> Linker> System > 
select Console (/SUBSYSTEM:CONSOLE) in SubSystem option. 

...但是我的VS版本(Community 2015)没有相同的功能(至少,我找不到)。当我右键单击并选择此项目的属性时,我得到:

screenshot

这个回答:Python file closes instantly in MS visual studio 2015

......看起来很有希望,但我已经看过那个设置了:

Python Tools screenshot

0 个答案:

没有答案
相关问题