Print out exception before entering pdb for easier debugging