Show More
@@ -38,7 +38,7 b' from IPython.core.excolors import exception_colors' | |||
|
38 | 38 | has_pydb = False |
|
39 | 39 | prompt = 'ipdb> ' |
|
40 | 40 | #We have to check this directly from sys.argv, config struct not yet available |
|
41 | if '-pydb' in sys.argv: | |
|
41 | if '--pydb' in sys.argv: | |
|
42 | 42 | try: |
|
43 | 43 | import pydb |
|
44 | 44 | if hasattr(pydb.pydb, "runl") and pydb.version>'1.17': |
@@ -50,6 +50,14 b" addflag('pdb', 'InteractiveShell.pdb'," | |||
|
50 | 50 | "Enable auto calling the pdb debugger after every exception.", |
|
51 | 51 | "Disable auto calling the pdb debugger after every exception." |
|
52 | 52 | ) |
|
53 | # pydb flag doesn't do any config, as core.debugger switches on import, | |
|
54 | # which is before parsing. This just allows the flag to be passed. | |
|
55 | shell_flags.update(dict( | |
|
56 | pydb = ({}, | |
|
57 | """"Use the third party 'pydb' package as debugger, instead of pdb. | |
|
58 | Requires that pydb is installed.""" | |
|
59 | ) | |
|
60 | )) | |
|
53 | 61 | addflag('pprint', 'PlainTextFormatter.pprint', |
|
54 | 62 | "Enable auto pretty printing of results.", |
|
55 | 63 | "Disable auto auto pretty printing of results." |
General Comments 0
You need to be logged in to leave comments.
Login now