Why is debugging so slow?

Sometimes debugging speed seems normal, meaning that even if it is slow, it's not that slow. But sometimes it is extremely slow, even the break point is set at the very beginning of the code. The code basically does nothing. 

Is there a way to clear some cache to speed it up? 

 

I did this, but still doesn't help:

 

rm -rf ~/Library/Caches/PyCharm2019.1/*

2 comments
Comment actions Permalink

First I would suggest to disable Cython speedups, by adding the following env variables to your run/debug configuration:

PYDEVD_USE_CYTHON=NO
PYDEVD_USE_FRAME_EVAL=NO

Second - check if it's a network issue. Try disabling firewall/antivirus. Try this and let me know, I'll try to get more recommendations for you.

1
Comment actions Permalink

I've been using django-debug-toolbar with PyCharm's debugger recently. Separately, they work just fine. But when I use them together, run time is unbearably slow. Could that be the issue here?  Any suggestions for fixing it?

0

Please sign in to leave a comment.