Menu

Breaking pydev debuggr on uncaught exceptions

Anonymous
2011-04-20
2013-03-15
  • Anonymous

    Anonymous - 2011-04-20

    Is it possible to make the pydev debugger break on uncaught exceptions? How? If i goto window->preferences->java->debug i see an option to suspend execution on uncaught exceptions, but there is no such option under window->preferences->pydev->debug.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-04-22

    It's possible, but it's currently not in the UI (although that's already planned). To enable it, do in your code (note that pydevd will always be there when you debug, so, it doesn't really need to be in your pythonpath):

    import pydevd;
    pydevd.set_pm_excepthook(exceptions)

    where exceptions is a tuple of exceptions to be handled (if not passed, any uncaught exception will be gotten).

    Cheers,

    Fabio

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.