Skip to content
Prev Previous commit
Next Next commit
Merge branch 'main' into pdb-rc-commands
  • Loading branch information
gaogaotiantian committed Oct 9, 2023
commit 78f953a382b2686b09b410a7cca6e126b34b5891
7 changes: 7 additions & 0 deletions Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,13 @@ def setup(self, f, tb):
# cache it here to ensure that modifications are not overwritten.
self.curframe_locals = self.curframe.f_locals
self.set_convenience_variable(self.curframe, '_frame', self.curframe)
if self._chained_exceptions:
self.set_convenience_variable(
self.curframe,
'_exception',
self._chained_exceptions[self._chained_exception_index],
)

if self.rcLines:
self.cmdqueue = self.rcLines
self.rcLines = []
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.