GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — gh-82987: Stop on calling frame unconditionally for inline breakpoints by gaogaotiantian · Pull Request #130493 · python/cpython Conversation
| |||||||||||||||||||
| @@ -0,0 +1 @@ | |||
| :mod:`pdb` will always stop on calling frames when inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` are used, regardless of whether the module matches ``skip`` pattern. | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is probably worth a what's new entry.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
And a versionchange comment in the doc?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…fQlG.rst Co-authored-by: Irit Katriel <[email protected]>
| Added the *mode* argument. | ||
|
|
||
| .. versionchanged:: 3.14 | ||
| *skip* will be ignored if inline breakpoints like :func:`breakpoint` or :func:`set_trace` are used. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
"if ... are used" could be misunderstood to mean that skip will always be ignored if those are ever used.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Will changing it to "when ... are used" better? Or we should just use the longer version from the news entry?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think "when .. are used" has the same problem, as does the longer version from the news entry.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will always stop the program at calling frame, ignoring the ``skip`` pattern (if any).
Is this better?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yes.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Then I'll use this for all 3 places :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.