7đź‘Ť
Well, the debugger is just slow and there is not much you can do about it. Just don’t use the debugger unless you absolutely need it (i.e. you are troubleshooting a particularly elusive bug).
I can think of only one thing that may speed up the PyCharm’s debugger and that is to turn off the “Collect run-time types information for code insight” setting (located under File > Settings > Build, Execution, Deployment > Python Debugger).
4đź‘Ť
For me the issue improved when I remembered I had enabled the debugger to collect type information.
-
Hit
Ctrl-Shift-A
or search underSettings > Build, Execution, Deployment > Python Debugger
forcollect run-time types information for code insight
-
Un-check the box and hit
apply
-
See if this helps
I run PyCharm Community 5.0.1
- How do you use Django-filter's '__in' lookup?
- Why use Django's collectstatic instead of just serving the files directly from your static directory?
- How to test (using unittest) the HTML output of a Django view?
- How to clear all session variables without getting logged out
- Creating UTF-8 JsonResponse in Django
1đź‘Ť
I noticed the original poster’s debug output doesn’t include the message about cython. I came to this post because I couldn’t figure out why my pycharm debug was so slow, but later I realized a suggestion for speeding up the debugger is right here in my debug output.
"<some-path-to-python>/python" "/Applications/PyCharm.app/Contents/helpers/pydev/setup_cython.py" build_ext --inplace
I hope folks have tried that. I guess this answer is for the non-output readers of the world.
- Django: Generic views based 'as_view()' method
- Apache strips down "Authorization" header
- How to mock chained function calls in python?
- Accessing Django OneToOneField in templates?
- Paypal monthly subscription plan settings for first day of the month and making monthly recurring payment – django python
1đź‘Ť
Need to experiment on these, taken from Jetbrain blog:
- delete all breakpoints
- turn off tracing exceptions
- no runtime type insights
But also look at disabling Django model checking etc to speed up.
I’v used a patch to speed up test cases, 10x faster to run.
So, if you do TDD, functions are less heavier than views. It let you resolve bug quickly.
- Creating Partial Indexes with Django 1.7
- Django redirect() with anchor (#) parameters
- Change default Django REST Framework home page title
- How to embed matplotlib graph in Django webpage?