I want to force pydev to enter interactive console mode whenever my program raises an unhandled exception, but I cannot figure out how to do this. As he behaves now, an exception is reported and the process is interrupted immediately.
After some searching, I found this:
http://sourceforge.net/tracker/index.php?func=detail&aid=3029746&group_id=85796&atid=577332
which suggests using pydevd.set_pm_excepthook ()
However, when I add
import pydevd
pydevd.set_pm_excepthook()
to my code, I get an exception:
This function is now replaced by GetGlobalDebugger().setExceptHook and is now controlled by the PyDev UI.')
DeprecationWarning: This function is now replaced by GetGlobalDebugger().setExceptHook and is now controlled by the PyDev UI.
But:
GetGlobalDebugger().setExceptHook()
It doesn't seem to work, GetGlobalDebugger () does not exist in the global namespace.
source
share