Add module ignoring functionality to debugger#14973
Merged
krassowski merged 6 commits intoipython:mainfrom Sep 26, 2025
Merged
Conversation
f4c9cdb to
5f599d3
Compare
Member
|
I think this closes #1665. The proposal there was to expose |
krassowski
reviewed
Aug 29, 2025
Member
krassowski
left a comment
There was a problem hiding this comment.
Thank you for the PR @ktowen!
This looks mostly fine, the only thing missing is tests. Can you add tests for both ignore_module and unignore_module with and without wildcard usage?
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
1b30a21 to
de4bf44
Compare
de4bf44 to
21de9fc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds two new commands to ignore (and unignore) specific modules when navigating frames in the IPython debugger, similar to how the debugger already skips hidden frames. It will work with all the commands that implies moving between frames like
up,down,stepandnext.It is useful when you don't want the debugger to enter third party code.
Closes #1665