##// END OF EJS Templates
restore auto debug behavior...
MinRK -
Show More
@@ -1442,7 +1442,6 b' class InteractiveShell(Configurable, Magic):'
1442 sys.last_type = etype
1442 sys.last_type = etype
1443 sys.last_value = value
1443 sys.last_value = value
1444 sys.last_traceback = tb
1444 sys.last_traceback = tb
1445
1446 if etype in self.custom_exceptions:
1445 if etype in self.custom_exceptions:
1447 # FIXME: Old custom traceback objects may just return a
1446 # FIXME: Old custom traceback objects may just return a
1448 # string, in that case we just put it into a list
1447 # string, in that case we just put it into a list
@@ -1458,11 +1457,10 b' class InteractiveShell(Configurable, Magic):'
1458 else:
1457 else:
1459 stb = self.InteractiveTB.structured_traceback(etype,
1458 stb = self.InteractiveTB.structured_traceback(etype,
1460 value, tb, tb_offset=tb_offset)
1459 value, tb, tb_offset=tb_offset)
1461 # FIXME: the pdb calling should be done by us, not by
1460
1462 # the code computing the traceback.
1461 if self.call_pdb:
1463 if self.InteractiveTB.call_pdb:
1462 # drop into debugger
1464 # pdb mucks up readline, fix it back
1463 self.debugger(force=True)
1465 self.set_readline_completer()
1466
1464
1467 # Actually show the traceback
1465 # Actually show the traceback
1468 self._showtraceback(etype, value, stb)
1466 self._showtraceback(etype, value, stb)
General Comments 0
You need to be logged in to leave comments. Login now