Pycharm 2017.1 Open Debug Command Line is not work

2019-07-15 01:36发布

I was not sure if anyone else has run into this issue, but in the new Pycharm 2017.1 the Open Debug Command Line option is not working at all. I created a test case and ran it with py.test with no problem. But when I have a breakpoint and try to Open Debug Command Line the debug console only opens a regular python console with no connection to the underlying debug process. I can't seem to access any variables in the debug scope either.

I have posted an issue to the Jetbrains Pycharm issue tracker issue PY-23401.

In the image below you can see the debug console opened at the bottom of the screenshot. I tried to enter some variable values from the debug session, but don't receive an error and don't receive any info either. Has anyone else run into this, and has anyone found a way to fix this?

enter image description here

3条回答
走好不送
2楼-- · 2019-07-15 01:53

It looks like your lower_ml variable is None.
Try going back into the debugger tab, and setting a watcher for it. Or try lower_ml is None in the console.

查看更多
小情绪 Triste *
3楼-- · 2019-07-15 02:11

I have the same problem. Also it's not possible anymore to run individual functions from tests. The 2017.1 release seems to be a bit broken.

查看更多
祖国的老花朵
4楼-- · 2019-07-15 02:15

The solution for me was to install Pycharm version 2017.1.2. That fixed the issue.

查看更多
登录 后发表回答