PyCharm's built-in debugger slows down the application

I use PyCharm to debug a moderately complex Pyramid web application with a lot of dependencies. When I launch the application inside PyCharm using PyCharm Debug run, the launch of the application slows down significantly. This kills the normal web application workflow for editing, saving, updating. The slowdown is significant, causing the application to restart tens of seconds instead of a split second.

Is there a way to speed up PyCharm debugging? This slowdown will not happen if you use hard-coded style breakpoints import pdb ; pdb.set_trace()and normal operation.

+4
source share
1 answer

QuickTime , pdb.set_trace().

"Run/Debug Configurations" . , :

  • pycharm-debug.egg PyCharm Python.

  • :

    import pydev

  • :

    pydevd.settrace('localhost', port=$SERVER_PORT, stdoutToServer=True, stderrToServer=True)

. , . , oneliner, ;.

settrace() , PyCharm, .

, pycharm-debug.egg? - PyCharm. OS X Contents/debug-eggs PyCharm.app. , PyCharm .

virtualenv, , easy_install.

PyCharm ( stdout PyCharm), Project Interpreter.

+2

All Articles