Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Cannot debug running process with PyCharm #91

Open
LawrenceHan opened this issue May 25, 2023 · 2 comments
Open

Cannot debug running process with PyCharm #91

LawrenceHan opened this issue May 25, 2023 · 2 comments

Comments

@LawrenceHan
Copy link

LawrenceHan commented May 25, 2023

After executed: lc-serve deploy local api.
Cannot debug running process with PyCharm.

@nicognaW
Copy link

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.

@JoanFM
Copy link
Member

JoanFM commented Jul 11, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants