mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-09 13:32:20 +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':
|
elif debugger == 'ipdb':
|
||||||
import ipdb
|
import ipdb
|
||||||
ipdb.post_mortem(exc_info[2])
|
ipdb.post_mortem(exc_info[2])
|
||||||
|
elif debugger == 'pudb':
|
||||||
|
import pudb
|
||||||
|
pudb.post_mortem(exc_info)
|
||||||
|
|
||||||
def add_parser(self, attacker_class, *args, **kwds):
|
def add_parser(self, attacker_class, *args, **kwds):
|
||||||
attacker = attacker_class()
|
attacker = attacker_class()
|
||||||
@@ -281,6 +284,9 @@ class AttackApp(object):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--ipdb', dest='debugger', const='ipdb', action='store_const',
|
'--ipdb', dest='debugger', const='ipdb', action='store_const',
|
||||||
help='Launch ipdb when error is raised.')
|
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(
|
parser.add_argument(
|
||||||
'--fs-cache', '-C', default=_unspecified,
|
'--fs-cache', '-C', default=_unspecified,
|
||||||
help="""
|
help="""
|
||||||
|
|||||||
Reference in New Issue
Block a user