[IMP] post_mortem add pudb/ipdb debugger support

Prefer pudb/ipdb to pdb if available.

Closes: #4211