Importing this module enables automatic post mortem debugging upon any exception. It uses module specified in envvar
This is a simple module which enables you to have automatic post-mortem debugging as simply as possible
Install it using pip install autodebug.
Then in your Python script, before the possible exception write
Then if any uncaught exception happens, you’ll be immediately transferred to debugger. Exactly the moment before the exception occured. So you’ll have access to all variables and everything.
You can specify which Python debugger you want to use.
To do that simply set the environmental variable AUTO_DEBUG. Possible debuggers currently are:
If you do not set the variable, pdb will be used, as it is built-in.