PyCharm 调试控制台不工作 [英] PyCharm debug console not working

查看:65
本文介绍了PyCharm 调试控制台不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以运行调试器并设置断点以激活控制台,但控制台似乎没有接收我输入的代码.

I can run the debugger and put breakpoints to active the console but it appears as if the console doesn't pick up the code I am entering.

我可以输入任何内容,但没有任何输出,

I can just type anything but I don't get any ouput,

a=2
print(a)
sfgsmk
..g.bbcvdgdggh

关于如何让调试控制台运行我正在输入的代码以及如何让它显示输出的任何想法.

Any ideas how I can get the debug console to run the code I am typing and how to get it to show output.

我使用的是社区版 2017.1.4

I am using Community Edition 2017.1.4

推荐答案

点击按钮 Show Python Prompt.

为了让提示自动出现,去Preferences>Build, Execution, Deployment>Console>勾选Always显示调试控制台

In order to have the prompt automatically appear, go to Preferences>Build, Execution, Deployment>Console> check Always show debug console

这篇关于PyCharm 调试控制台不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆