Skip to content

Commit

Permalink
Debugger: Remove Pdb reference when showing Pdb frames
Browse files Browse the repository at this point in the history
That's because it's not easy to grasp.
  • Loading branch information
ccordoba12 committed Jun 12, 2024
1 parent ab9d4af commit ee8469a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spyder/plugins/debugger/widgets/framesbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ def set_from_pdb(self, pdb_stack, curindex):
def show_pdb(self, pdb_stack, curindex):
"""Show pdb frames."""
self._show_frames(
{'Pdb': pdb_stack}, _("Pdb stack"), FramesBrowserState.Debug
{_("Frames"): pdb_stack},
_("Debugger stack"),
FramesBrowserState.Debug,
)
self._persistence = 0
self.pdb_curindex = curindex
Expand All @@ -223,8 +225,8 @@ def show_pdb(self, pdb_stack, curindex):
def show_exception(self, etype, error, tb):
"""Set frames from exception"""
self._show_frames(
{etype: tb}, _("Exception occured"),
FramesBrowserState.Error)
{etype: tb}, _("Exception occured"), FramesBrowserState.Error
)
self.sig_update_actions_requested.emit()

def show_captured_frames(self, stack_dict):
Expand Down

0 comments on commit ee8469a

Please sign in to comment.