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
self.run_application()
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': '127.0.0.1', 'REMOTE_PORT': '56809', 'HTTP_HOST': '127.0.0.1:10000', (hidden keys: 21)} failed with AttributeError

 

but ,when i use run model, its ok.

1 comment
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.

0

Please sign in to leave a comment.