Cannot debug running process with PyCharm
LawrenceHan opened this issue · comments
After executed: lc-serve deploy local api.
Cannot debug running process with PyCharm.
Same here, and every time I tried to start using debug, this error occurred:
Traceback (most recent call last):
File "/Applications/DataSpell.app/Contents/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 293, in _on_run
r = self.sock.recv(1024)
^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 9] Bad file descriptor
I'm using DataSpell BTW.
Hello @LawrenceHan and @nicognaW ,
Sorry for the late response, this went under my radar.
It is not easy to debug because the application is actually run in a different process than the main process. Not an expert in PyCharm but maybe u can easily attach a debugger to a running process.
https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html