~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

Really enter the debugger on failure

Show diffs side-by-side

added added

removed removed

Lines of Context:
551
551
            bzrlib.trace.note('broken pipe')
552
552
            return 3
553
553
        else:
 
554
            bzrlib.trace.log_exception()
554
555
            if os.environ.get('BZR_PDB'):
 
556
                print '**** entering debugger'
555
557
                import pdb
556
 
                pdb.pm()
557
 
            bzrlib.trace.log_exception()
 
558
                pdb.post_mortem(sys.exc_traceback)
558
559
            return 3
559
560
 
560
561
if __name__ == '__main__':