code: def xpm(Pdb=Pdb):
      
      info = sys.exc_info()
      print(traceback.format_exc())
      post_mortem(info[2], Pdb)
docs: To be used inside an except clause, enter a post-mortem pdb
      related to the just catched exception.