Connection to Python debugger failed: Accept timed out
IDE : PyCharm CE 2020.1 installed
Python : Python 2.7
OS: macOs Catelina
MacBook Pro (16-inch, 2019)
I am not able to attach the process, always gets the "Connection to Python debugger failed: Accept timed out"
I tried several posts from community having same issue but not working
Please sign in to leave a comment.
Hello,
Please add PYCHARM_DEBUG=True environment variable to your Run/Debug configuration https://www.jetbrains.com/help/pycharm/creating-and-editing-run-debug-configurations.html, debug (to reproduce the problem) and provide the whole console output.
The only error message that I get is, I am trying to attach the process and not debugging the specific .py file
- In Run/Debug configuration I am not adding any .py file for debugging
Attaching to a process with PID=2051
/Users/nitinpund/pse/welkin_virtualenv/bin/python2.7 "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_pydevd.py" --port 49669 --pid 2051
Process finished with exit code 0
Server stopped.
Hello,
Please add PYCHARM_DEBUG=True environment variable to your Run/Debug configuration it will increase logging level which is required for the investigation.
Please provide me with the console output after debugging.
Thank you!
I have the same problem with 2021.2.3 and the addition of then environment variable does nothing and no addiitonal console output
Please report it to https://youtrack.jetbrains.com/issues/PY, we'll investigate.