-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
gh-120144: Make it possible to use sys.monitoring for bdb and make it default for pdb
#124533
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
Merged
gaogaotiantian
merged 22 commits into
python:main
from
gaogaotiantian:pdb-use-monitoring
Mar 17, 2025
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
18e6e9c
Allow using sys.monitoring for bdb
gaogaotiantian b29aff5
Add basic line ignore
gaogaotiantian 23601f3
Use setttrace as default backend for bdb
gaogaotiantian c9a92f6
📜🤖 Added by blurb_it.
blurb-it[bot] 8955d78
Use settrace by default for pdb.Pdb, but use monitoring for all
gaogaotiantian 6afc2e7
Only trigger events on thread calling start_trace
gaogaotiantian b595682
Use local events when possible
gaogaotiantian addf465
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian 70d5138
Fix ignore and condition of breakpoints
gaogaotiantian 7c83425
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian fe9971c
Address comments about backend
gaogaotiantian 69a5030
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian 05cc3b0
We need BaseException to handle SystemExit case
gaogaotiantian e6bc287
Move default_backend to module level and provide utils
gaogaotiantian f0c1306
Do not need to pass trace_dispatch explicitly
gaogaotiantian a9b53ed
Add docs
gaogaotiantian 9790085
Add version added
gaogaotiantian ea811f2
Add new functions to __all__
gaogaotiantian ad2179e
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian e4ccd8a
Restart events after user line
gaogaotiantian d2c1f2e
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian e9252ec
Remove blank line
gaogaotiantian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use settrace by default for pdb.Pdb, but use monitoring for all
direct pdb usage
- Loading branch information
commit 8955d78969ceacddfbb76ea8046d7f2b9fc8da50
There are no files selected for viewing
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backend=Pdb.DEFAULT_BACKENDto avoid the need for the conditional expression on the next line.That wouldn't work because
DEFAULT_BACKENDis not a constant.