Пример #1
0
 def new_method(*args, **kwargs):
     import pdb
     try:
         import pudb
     except ImportError:
         pudb = pdb
     try:
         pudb.runcall(method, *args, **kwargs)
     except pdb.bdb.BdbQuit:
         sys.exit('Normal quit from debugger')
Пример #2
0
def pudebug(f, *args, **kwargs):
    import pudb
    return pudb.runcall(f, *args, **kwargs)
Пример #3
0
def pudebug(f, *args, **kwargs):
    import pudb
    return pudb.runcall(f, *args, **kwargs)
Пример #4
0
def f():
    fail

from pudb import runcall
runcall(f)