Skip to content

Commit

Permalink
Merge pull request spyder-ide#23273 from athompson673/patch-2
Browse files Browse the repository at this point in the history
PR: Don't hide control debugger buttons from main toolbar while executing
  • Loading branch information
ccordoba12 authored Dec 15, 2024
2 parents 80f6954 + ea50ce0 commit 49e81ef
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 49e81ef

Please sign in to comment.