Skip to content

Commit

Permalink
Backport PR #23273 on branch 6.x (PR: Don't hide control debugger but…
Browse files Browse the repository at this point in the history
…tons from main toolbar while executing) (#23292)
  • Loading branch information
meeseeksmachine authored Dec 15, 2024
1 parent d73aacc commit 02caed1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spyder/plugins/debugger/widgets/main_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,15 @@ def update_actions(self):
post_mortem = False
executing = False
pdb_prompt = False
is_debugging = False
else:
search_action.setEnabled(True)
search_action.setChecked(widget.finder_is_visible())
post_mortem = widget.state == FramesBrowserState.Error
sw = widget.shellwidget
executing = sw._executing
pdb_prompt = sw.is_waiting_pdb_input()
is_debugging = sw.is_debugging()

enter_debug_action.setEnabled(post_mortem and not executing)
interrupt_and_debug_action.setEnabled(executing)
Expand All @@ -438,7 +440,9 @@ def update_actions(self):
action = self.get_action(action_name)
action.setEnabled(pdb_prompt)

self._set_visible_control_debugger_buttons(pdb_prompt)
self._set_visible_control_debugger_buttons(
pdb_prompt or is_debugging
)

rows = self.breakpoints_table.selectionModel().selectedRows()
initial_row = rows[0] if rows else None
Expand Down

0 comments on commit 02caed1

Please sign in to comment.