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

fix: debugger_class in ultratb #13498

Merged
merged 3 commits into from Mar 27, 2022
Merged

fix: debugger_class in ultratb #13498

merged 3 commits into from Mar 27, 2022

Conversation

chapmanjacobd
Copy link
Contributor

@chapmanjacobd chapmanjacobd commented Jan 29, 2022

closes #13495

@@ -907,7 +907,7 @@ def debugger(self, force: bool = False):
fix that by hand after invoking the exception handler."""

if force or self.call_pdb:
if self.pdb is None:
if self.debugger_cls:
self.pdb = self.debugger_cls()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is totally correct. pdb is supposed to be the instance, there is just another place that sets pdb without respecting debugger_cls.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is just another place that sets pdb without respecting debugger_cls

which place exactly? ListTB?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry coming back to this.

Here in init:

if call_pdb:
self.pdb = debugger.Pdb()
else:
self.pdb = None

@Carreau Carreau added this to the 8.2 milestone Feb 25, 2022
@Carreau Carreau merged commit b77ebf5 into ipython:master Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is tab supposed to work in the ultratb prompt ?
2 participants