Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore auto debug behavior #344

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 4 additions & 6 deletions IPython/core/interactiveshell.py
Expand Up @@ -1442,7 +1442,6 @@ def showtraceback(self,exc_tuple = None,filename=None,tb_offset=None,
sys.last_type = etype
sys.last_value = value
sys.last_traceback = tb

if etype in self.custom_exceptions:
# FIXME: Old custom traceback objects may just return a
# string, in that case we just put it into a list
Expand All @@ -1458,11 +1457,10 @@ def showtraceback(self,exc_tuple = None,filename=None,tb_offset=None,
else:
stb = self.InteractiveTB.structured_traceback(etype,
value, tb, tb_offset=tb_offset)
# FIXME: the pdb calling should be done by us, not by
# the code computing the traceback.
if self.InteractiveTB.call_pdb:
# pdb mucks up readline, fix it back
self.set_readline_completer()

if self.call_pdb:
# drop into debugger
self.debugger(force=True)

# Actually show the traceback
self._showtraceback(etype, value, stb)
Expand Down