i use pycharm debug model error .but run model ok?what happen

when i use pycharm debug model,send a post to my server.it happened:

onnected to pydev debugger (build 192.6817.19)
Traceback (most recent call last):
File "/Users/momo/Documents/momo/envs/aswan_django/lib/python3.7/site-packages/gevent/pywsgi.py", line 976, in handle_one_response
File "/Users/momo/Documents/momo/envs/aswan_django/lib/python3.7/site-packages/gevent/pywsgi.py", line 923, in run_application
self.result = self.application(self.environ, self.start_response)
File "/Users/momo/Documents/momo/codes/aswan/risk_server.py", line 44, in application
def application(environ, start_response):
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_frame_eval/pydevd_frame_tracing.py", line 56, in _pydev_stop_at_break
t.additional_info.is_tracing = True
AttributeError: '_DummyThread' object has no attribute 'additional_info'
2019-12-04T02:09:17Z {'REMOTE_ADDR': '', 'REMOTE_PORT': '56809', 'HTTP_HOST': '', (hidden keys: 21)} failed with AttributeError


but ,when i use run model, its ok.

Comment actions Permalink

Please update to the latest PyCharm version and see if the issue remains.

If it does, try debugging a new Django project to check if it's reproducible.

Please let me know how it goes.

Comment actions Permalink

I just hit this in PyCharm with the latest install (2020.1) while trying to break into a spawned thread.  A regular breakpoint didn't work, so I tried using the new `breakpoint()` function and that's where it blew up.

Comment actions Permalink

I've also recently installed PyCharm v 2020.1 and I'm having the same problem debugging an application (while running it works). For few days after the installation I was able to debug, then something happened.

Error: AttributeError: '_DummyThread' object has no attribute 'additional_info'

Comment actions Permalink

File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pydev\_pydevd_frame_eval\pydevd_frame_tracing.py", line 55, in _pydev_stop_at_break
if t.additional_info.is_tracing:
AttributeError: '_DummyThread' object has no attribute 'additional_info'

Comment actions Permalink

Please vote for the following bug in our issue tracker https://youtrack.jetbrains.com/issue/PY-41780


Please sign in to leave a comment.