debug模式下总是报这个错,没法debug
来源:2-8 使用cookies绕过登陆

慕粉3869017
2020-04-11
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py --multiproc --qt-support --client 127.0.0.1 --port 62812 --file /Users/yaogaolin/PycharmProjects/python_ui/part_one/my_cookies.py
/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_resolver.py:157: SyntaxWarning: “is not” with a literal. Did you mean “!=”?
if found.get(name) is not 1:
/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_frame.py:326: SyntaxWarning: “is” with a literal. Did you mean “"?
if stop_frame is frame and event is ‘return’ and step_cmd in (CMD_STEP_RETURN, CMD_STEP_OVER):
/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_frame.py:532: SyntaxWarning: “is” with a literal. Did you mean "”?
if event is ‘return’:
warning: Debugger speedups using cython not found. Run ‘"/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8" “/Applications/PyCharm.app/Contents/helpers/pydev/setup_cython.py” build_ext --inplace’ to build.
pydev debugger: process 53469 is connecting
Connected to pydev debugger (build 145.844)
2回答
-
慕粉3869017
提问者
2020-04-18
这个问题困扰了好久,终于解决了。是pycharm版本太低,对python3.8的支持不好,升级版本到最新就解决了。
00 -
大周
2020-04-11
你代码写错了。 改正确就行了。
00
相似问题