FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[WIP] gh-82987: bdb: stop_here: always stop at calling frame by blueyed · Pull Request #17159 · python/cpython · GitHub

/ cpython Public

[WIP] gh-82987: bdb: stop_here: always stop at calling frame - #17159

Draft
blueyed wants to merge 2 commits into
python:mainfrom
blueyed:is_skipped_module-stop-at-set_trace
Draft

[WIP] gh-82987: bdb: stop_here: always stop at calling frame#17159
blueyed wants to merge 2 commits into
python:mainfrom
blueyed:is_skipped_module-stop-at-set_trace

Conversation

blueyed commented Nov 15, 2019
edited by serhiy-storchaka
Loading

Copy link
Copy Markdown
Contributor

The following will not stop for debugging:

python3.8 -c 'import pdb; pdb.Pdb(skip=["*"]).set_trace()'

The example is contrived, the real case would be to have some "noisy"
module being excluded in general, but when you add an explicit
"set_trace()" in there it should still stop there, and not on some upper
frame.

This was changed a long time already in
313a751
(Python 2.3), but it is not really clear.
/cc @ctismer

This PR is meant to see how reverting that part goes.

https://bugs.python.org/issue38806

blueyed changed the title bpo-38806: bdb: stop_here: always stop at calling frame [WIP] bpo-38806: bdb: stop_here: always stop at calling frame Nov 15, 2019

blueyed commented Nov 15, 2019

Copy link
Copy Markdown
Contributor Author

Note: with pdbpp I am remembering the frame in Pdb.set_trace already, which could be an option here also?

blueyed added a commit to blueyed/pdbpp that referenced this pull request Nov 19, 2019
This is relevant for when `skip` is used.

Ref: https://bugs.python.org/issue38806
Ref: python/cpython#17159

NOTE: pypy2: needs the extra check for frame, which makes sense in general
      (via test_sigint_in_interaction_without_new_cmdloop).
blueyed added a commit to pdbpp/pdbpp that referenced this pull request Nov 19, 2019
This is relevant for when `skip` is used.

Ref: https://bugs.python.org/issue38806
Ref: python/cpython#17159

NOTE: pypy2: needs the extra check for frame, which makes sense in general
      (via test_sigint_in_interaction_without_new_cmdloop).
The following will not stop for debugging:

    python3.8 -c 'import pdb; pdb.Pdb(skip=["*"]).set_trace()'

The example is contrived, the real case would be to have some "noisy"
module being excluded in general, but when you add an explicit
"set_trace()" in there it should still stop there, and not on some upper
frame.

This was changed a long time already in
python@313a751
(Python 2.3), but it is not really clear.

This PR is meant to see how reverting that part goes.

python-cla-bot Bot commented Apr 6, 2025

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

github-actions Bot commented Apr 7, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 7, 2026
serhiy-storchaka changed the title [WIP] bpo-38806: bdb: stop_here: always stop at calling frame [WIP] gh-82987: bdb: stop_here: always stop at calling frame Aug 12, 2026
github-actions Bot removed the stale Stale PR or inactive for long period of time. label Aug 14, 2026
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL