##// END OF EJS Templates
enable quitting for -m IPython.terminal.debugger
mbyt -
Show More
@@ -86,5 +86,11 b' def set_trace(frame=None):'
86
86
87 if __name__ == '__main__':
87 if __name__ == '__main__':
88 import pdb
88 import pdb
89 # IPython.core.debugger.Pdb.trace_dispatch shall not catch
90 # bdb.BdbQuit. When started through __main__ and an exeption
91 # happend after hitting "c", this is needed in order to
92 # be able to quit the debugging session (see #9950).
93 old_trace_dispatch = pdb.Pdb.trace_dispatch
89 pdb.Pdb = TerminalPdb
94 pdb.Pdb = TerminalPdb
95 pdb.Pdb.trace_dispatch = old_trace_dispatch
90 pdb.main()
96 pdb.main()
General Comments 0
You need to be logged in to leave comments. Login now