mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-01 01:33:21 +08:00
Add --pudb option to sith.py
This commit is contained in:
6
sith.py
6
sith.py
@@ -254,6 +254,9 @@ class AttackApp(object):
|
||||
elif debugger == 'ipdb':
|
||||
import ipdb
|
||||
ipdb.post_mortem(exc_info[2])
|
||||
elif debugger == 'pudb':
|
||||
import pudb
|
||||
pudb.post_mortem(exc_info)
|
||||
|
||||
def add_parser(self, attacker_class, *args, **kwds):
|
||||
attacker = attacker_class()
|
||||
@@ -281,6 +284,9 @@ class AttackApp(object):
|
||||
parser.add_argument(
|
||||
'--ipdb', dest='debugger', const='ipdb', action='store_const',
|
||||
help='Launch ipdb when error is raised.')
|
||||
parser.add_argument(
|
||||
'--pudb', dest='debugger', const='pudb', action='store_const',
|
||||
help='Launch pudb when error is raised.')
|
||||
parser.add_argument(
|
||||
'--fs-cache', '-C', default=_unspecified,
|
||||
help="""
|
||||
|
||||
Reference in New Issue
Block a user