break for exception
                
                Brought to you by:
                
                    fabioz
                    
                
            
            
        
        
        
    I have found the attached patch useful to get debugger breakpoint functionality upon an uncaught exception.
This belongs under https://sourceforge.net/tracker/index.php?func=detail&aid=1008443&group_id=85796&atid=577332
(the new artifact is so I can attach a file).
notes:
it's very crude (eg assigning to findFrame)
it only works for debug launches
no UI support such as enable/disable this behaviour
patch to pydevd.py
self-contained example (run under debugger)
added the script break_except.py which shows the functionality without patching pydev (needs to be run from pydev debugger)
this is a must for anyone doing debugging.
Just did an initial implementation (no UI for now).
The api to use it is:
import pydevd
pydevd.set_pm_excepthook()
or passing the exceptions. i.e.:
set_pm_excepthook((IndexError, AssertionError))
This should work when launched in the debugger.
Note: available in the current nightly (version 1.6.0)
fantastic! had being waiting for such a long time.