Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm pydev debugger: process is connecting forever

/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/bin/python3.6 "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 55819 --file "/Applications/PyCharm CE.app/Contents/helpers/pycharm/_jb_unittest_runner.py" --target test_output.TestMispOutputBot.test_event
Testing started at 10:31 ...
pydev debugger: process 3170 is connecting

No output for 10 minutes before I give up and kill the process.

Traceback (most recent call last):
  File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1599, in <module>
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 994, in run
    time.sleep(0.1)  # busy wait until we receive run command
KeyboardInterrupt

I tried everything I found regarding that error message:

  • Cleared all breakpoints (recommended here and here)
  • Deleted the .idea folder (recommended here and here)
  • Disabled the options add content roots and add source roots to PYTHONPATH (recommended here)

Any ideas?

like image 971
gies0r Avatar asked Mar 11 '18 09:03

gies0r


People also ask

What to do if debugger is not working in PyCharm?

Save this answer. Show activity on this post. I ran into this issue today, and the fix for me was to go into the Run/Debug Configuration and uncheck Execution->Emulate terminal in output console . After unchecking that, I now get >>> when I hit a breakpoint, and it's responsive.

How do I disable PyDev?

To do it you can go to Window > Preferences > PyDev > builder and disable it.

What does PyDev debugger do?

The Python debugger is an interactive source code debugger for Python programs. It can set conditional breakpoints and single stepping at the source line level. It also supports inspection of stack frames, source code listing, and evaluation of arbitrary Python code in any stack frame's context.

Is PyCharm Debug slower than run?

Unfortunately, debugger speed has some runtime limitations, which can't be easily fixed. If your code does some high performance computations, Debugger will be at least 3 times slower than usual Run. There is very low probability that this issue will be fixed soon.


1 Answers

Solved the issue by updating pyqt. If you use anaconda, please try:

conda install -c anaconda pyqt 
like image 152
ひやしちゅうか Avatar answered Oct 01 '22 15:10

ひやしちゅうか