How to use the ipdb.pm function in ipdb

To help you get started, we’ve selected a few ipdb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hal3 / macarico / tests / test_vw.py View on Github external
def debug_on_assertion(type, value, tb):
    if hasattr(sys, 'ps1') or not sys.stderr.isatty() or type != AssertionError:
        sys.__excepthook__(type, value, tb)
    else:
        import traceback, ipdb
        traceback.print_exception(type, value, tb)
        print()
        ipdb.pm()
github higlass / clodius / scripts / conversion_wrapper.py View on Github external
def _excepthook(exc_type, value, tb):
        traceback.print_exception(exc_type, value, tb)
        print()
        ipdb.pm()
github mirnylab / pairtools / pairtools / __init__.py View on Github external
def _excepthook(exc_type, value, tb):
            traceback.print_exception(exc_type, value, tb)
            print()
            pdb.pm()
        sys.excepthook = _excepthook
github community-collections / community-collections / cc_tools / stdtools.py View on Github external
print(say(tracetext))
        print(say('[ERROR]', 'red_black') + ' ' +
              say('%s' % exc_obj, 'cyan_black'))
    else:
        try:
            import ipdb as pdb_this
        except ImportError:
            print(
                'note',
                'entering debug mode but cannot find ipdb so we are using pdb')
            import pdb as pdb_this
        print(say(tracetext))
        print(say('[ERROR]', 'red_black') + ' ' +
              say('%s' % exc_obj, 'cyan_black'))
        print(say('[DEBUG] entering the debugger', 'mag_gray'))
        pdb_this.pm()
github nuxeo / nuxeo-drive / nxdrive / commandline.py View on Github external
def info(etype, value, tb):
                traceback.print_exception(etype, value, tb)
                pdb.pm()