Gevent debug support

Good news for everyone who uses gevent!

Since the last PyCharm 2.6 EAP our visual debugger is able to deal with gevent monkey-patched code.

To enable it just edit python/helpers/pydev/pydevd_constants.py in PyCharm installation and set the constant SUPPORT_GEVENT=True

Your feedback is welcome as always!

Update: In recent versions of PyCharm, the option has moved to the main settings dialog. You can enable it under Settings | Python Debugger | Gevent compatible debugging.

This entry was posted in Cool Feature. Bookmark the permalink.

7 Responses to Gevent debug support

  1. Trung Ly says:

    This helped me out a lot. Thanks!

    Any plans to do it in a non-hackish (like in Settings) way in the future?

  2. Lew says:

    This is great. We’ve been using this a ton!

    Having trouble getting remote debugging with gevent working though. Is this supported? (I can connect but breakpoints aren’t being hit.)

    Thanks!

    -Lew

  3. Lukman says:

    I become a Jetbrains clenit past year, buying the Personal License for PyCharm 1.0, but my license will expire next month in October, 28.I’ve to buy a new license for the version 2.0, if the final release occur after the expiration of my license or I’ll be called to renew my license? Sorry, but I really don’t know how is the process to continue to getting support for PyCharm.Thanks in advance.

  4. Hann says:

    Setting SUPPORT_GEVENT = True raises

    Exception KeyError: KeyError(4332526160,) in ignored

    while debugging. The problem is attached to importing threading module before monkey patching. My platform is PyCharm 2.7.3 build #129.782

    http://stackoverflow.com/questions/8774958/keyerror-in-module-threading-after-a-successful-py-test-run

    Those who face the same problem, please confirm.

  5. tracy jones says:

    I am also having an issue where i can connect but breakpoints are not being hit. I set
    GEVENT_SUPPORT on the client side and enabled gevent debugging on the server side. But no breakpoints.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">