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

Conversation

impact27
Copy link
Contributor

Description of Changes

depends on #19181

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)
  • Included a screenshot or animation (if affecting the UI, see Licecap)

Issue(s) Resolved

Fixes #

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:

@pep8speaks
Copy link

pep8speaks commented Aug 28, 2022

Hello @impact27! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-09-02 19:42:13 UTC

@impact27 impact27 force-pushed the move_breakpoints branch 4 times, most recently from 7fc3963 to 3403ca3 Compare August 29, 2022 05:45
breakpoints to debugger
fix
@impact27 impact27 changed the title PR: Move breakpoints to debugger plugin PR: Move breakpoints logic from editor plugin to debugger plugin Aug 31, 2022
@ccordoba12 ccordoba12 added this to the v6.0alpha1 milestone Aug 31, 2022
@ccordoba12
Copy link
Member

@impact27, is this ready for review?

@impact27
Copy link
Contributor Author

Yes this is ready

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty good! Thanks @impact27 for your work on it.

spyder/config/main.py Show resolved Hide resolved
spyder/plugins/debugger/panels/__init__.py Show resolved Hide resolved
spyder/plugins/debugger/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/debugger/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/breakpoints/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/debugger/widgets/framesbrowser.py Outdated Show resolved Hide resolved
spyder/plugins/debugger/widgets/main_widget.py Outdated Show resolved Hide resolved
spyder/plugins/editor/widgets/codeeditor.py Show resolved Hide resolved
spyder/plugins/ipythonconsole/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/plugin.py Outdated Show resolved Hide resolved
impact27 and others added 3 commits September 1, 2022 08:08
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second round of reviews for you @impact27.

spyder/config/main.py Outdated Show resolved Hide resolved
spyder/plugins/breakpoints/plugin.py Outdated Show resolved Hide resolved

from spyder.config.manager import CONF
from spyder.config.base import _
from spyder.py3compat import to_text_string
from spyder.api.manager import Manager
from spyder.plugins.editor.utils.editor import BlockUserData
from spyder.plugins.debugger.panels.debuggerpanel import DebuggerPanel
from spyder.plugins.editor.utils.editor import get_file_language
from spyder.plugins.editor.utils.languages import ALL_LANGUAGES


def _load_all_breakpoints():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not so sure because now the CONF is updated once instead of once for every editor. If I add these methods to BreakpointsManager I would loose this

Ok, I see. I thought my suggestion could be implemented easily, but we can see how to do it later.

Also what if the editor plugin is closed?

What do you mean by this?

spyder/plugins/editor/widgets/codeeditor.py Show resolved Hide resolved
spyder/plugins/editor/widgets/codeeditor.py Show resolved Hide resolved
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last review, then this should be ready.

spyder/plugins/debugger/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/debugger/plugin.py Outdated Show resolved Hide resolved
spyder/plugins/debugger/utils/breakpointsmanager.py Outdated Show resolved Hide resolved
spyder/plugins/editor/confpage.py Outdated Show resolved Hide resolved
spyder/plugins/ipythonconsole/widgets/shell.py Outdated Show resolved Hide resolved
impact27 and others added 3 commits September 2, 2022 21:30
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your hard work on this @impact27!

@ccordoba12 ccordoba12 merged commit e84aa4d into spyder-ide:master Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants