PyCharm debug console not working

2019-04-21 06:24发布

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.

I am using Community Edition 2017.1.4

标签: pycharm
3条回答
等我变得足够好
2楼-- · 2019-04-21 06:53

Click on the button Show Python Prompt.

enter image description here

查看更多
ら.Afraid
3楼-- · 2019-04-21 07:01

This is a known issue but the workaround is to add JB_DISABLE_BUFFERING into your environment variables (no value needed for this key) of your run/debug configuration. This resolved the issue for me on Pycharm Professional Edition 2017.1.5

查看更多
倾城 Initia
4楼-- · 2019-04-21 07:06

Adding -s to 'Additional Arguments' in the run configuration helped me with the same issue.

查看更多
登录 后发表回答