When Remote Debug Buildin CGI Server on PyCharm, Python Script Doesn't Stop at Breakpoint

流过昼夜 提交于 2019-12-13 00:33:48

问题


My environment: Windows7 64bit, Python 3.6.4 64bit, PyCharm 5.0.4, the version of pydevd I install was 1.1.1

I config Python Remote Debug on PyCharm, using port 8001,

and add this code to my cgi-bin/index.py:

import pydevd
pydevd.settrace('127.0.0.1', port=8001)

then I visit http://127.0.0.1:8000/cgi-bin/index.py, PyCharm show that debug suspend at the line right behind the code:

pydevd.settrace('127.0.0.1', port=8001)

I could enter F6 or F5 to step over code or step into code like I normally do, but when I enter F8, PyCharm didn't stop at the next breakpoint like usual, it run the whole index.py instead.

来源:https://stackoverflow.com/questions/49590628/when-remote-debug-buildin-cgi-server-on-pycharm-python-script-doesnt-stop-at-b

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!