Thread: [Pydev-users] [Users] Breaking pydev debuggr on uncaught exceptions
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2011-04-20 00:59:38
|
The following forum message was posted by at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4494909: 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. |
From: SourceForge.net <no...@so...> - 2011-04-22 23:25:35
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4494909: 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 |