Skip to content

fix: debugger_class in ultratb#13498

Merged
Carreau merged 3 commits into
ipython:masterfrom
chapmanjacobd:patch-3
Mar 27, 2022
Merged

fix: debugger_class in ultratb#13498
Carreau merged 3 commits into
ipython:masterfrom
chapmanjacobd:patch-3

Conversation

@chapmanjacobd
Copy link
Copy Markdown
Contributor

@chapmanjacobd chapmanjacobd commented Jan 29, 2022

closes #13495

Comment thread IPython/core/ultratb.py
if force or self.call_pdb:
if self.pdb is None:
if self.debugger_cls:
self.pdb = self.debugger_cls()
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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