added --pdb command option to enable pdb debugger on failure.