8000 gh-90095: Make .pdbrc work properly and add some reasonable tests by gaogaotiantian · Pull Request #110496 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-90095: Make .pdbrc work properly and add some reasonable tests #110496

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

Merged
merged 11 commits into from
Mar 11, 2024
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.
0