xcp_d.utils.debug module

Tools for debugging, from fMRIPrep.

xcp_d.utils.debug.is_interactive()[source]

Return True if all in/outs are tty.

xcp_d.utils.debug.setup_exceptionhook(ipython=False)[source]

Overload default sys.excepthook with our exceptionhook handler.

If interactive, our exceptionhook handler will invoke pdb.post_mortem; if not interactive, then invokes default handler.