I want to make pydev enter into an interactive console mode whenever my program raises an unhandled exception but I can\'t figure out how to do it. As it behaves now, the except
Actually, you don't need to do this programmatically... you can go to the Debug perspective > Pydev menu > Manage Exception Breakpoints
and check 'Suspend on uncaught exceptions'. In most cases you will want to catch all kinds of exceptions (so choose "Select All") but you can also select exceptions to be managed individually.