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

"pdb.Pdb(skip=…).set_trace()" should always stop on calling frame #82987

Open
blueyed mannequin opened this issue Nov 15, 2019 · 1 comment
Open

"pdb.Pdb(skip=…).set_trace()" should always stop on calling frame #82987

blueyed mannequin opened this issue Nov 15, 2019 · 1 comment
Labels
3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@blueyed
Copy link
Mannequin

blueyed mannequin commented Nov 15, 2019

BPO 38806
Nosy @blueyed
PRs
  • [WIP] bpo-38806: bdb: stop_here: always stop at calling frame #17159
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2019-11-15.00:26:53.876>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = '"pdb.Pdb(skip=\xe2\x80\xa6).set_trace()" should always stop on calling frame'
    updated_at = <Date 2019-11-15.00:29:14.383>
    user = 'https://github.com/blueyed'

    bugs.python.org fields:

    activity = <Date 2019-11-15.00:29:14.383>
    actor = 'blueyed'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-11-15.00:26:53.876>
    creator = 'blueyed'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38806
    keywords = ['patch']
    message_count = 1.0
    messages = ['356638']
    nosy_count = 1.0
    nosy_names = ['blueyed']
    pr_nums = ['17159']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38806'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9']

    @blueyed
    Copy link
    Mannequin Author

    blueyed mannequin commented Nov 15, 2019

    The following will not stop for debugging:

    python3.8 -c 'import pdb; pdb.Pdb(skip=["__main__"]).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.

    I will create a PR reverting that part and see how it goes.

    @blueyed blueyed mannequin added 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Nov 15, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants