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

PR: Move breakpoints logic from editor plugin to debugger plugin #19208

Merged
merged 28 commits into from
Sep 3, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
doc
  • Loading branch information
Quentin Peter committed Sep 2, 2022
commit 4a43ce442fd04f5a31dea0e77d9941cf0901d7e2
3 changes: 2 additions & 1 deletion spyder/config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@
'pdb_ignore_lib': False,
'pdb_execute_events': True,
'pdb_use_exclamation_mark': True,
'pdb_stop_first_line': True
'pdb_stop_first_line': True,
'breakpoints_panel': True,
}),
('plots',
{
Expand Down
33 changes: 30 additions & 3 deletions spyder/plugins/ipythonconsole/widgets/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,40 @@ class ShellWidget(NamepaceBrowserWidget, HelpWidget, DebuggingWidget,

# For DebuggingWidget
sig_pdb_step = Signal(str, int)
"""Called when pdb reaches a new line"""
"""
Called when pdb reaches a new line

Parameters
----------
filename: str
The filename the debugger stepped in
line_number: int
The line number the debugger stepped in
"""

sig_pdb_stack = Signal(object, int)
"""Called when the pdb stack changed"""
"""
Called when the pdb stack changed

Parameters
----------
pdb_stack: traceback.StackSummary
The current pdb stack
pdb_index: int
The index in the stack
"""

sig_pdb_state_changed = Signal(bool, dict)
"""Called every time a pdb interaction happens"""
"""
Called every time a pdb interaction happens

Parameters
----------
pdb_state: bool
wether the debugger is waiting for input
pdb_step: dict
filename and line number of the last step
"""

sig_pdb_prompt_ready = Signal()
"""Called when pdb request new input"""
Expand Down