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

bpo-35931: Gracefully handle any exception in pdb debug command #12103

Merged
merged 2 commits into from Mar 12, 2019

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Feb 28, 2019

This is relevant for debug doesnotexist(), which would crash with a
NameError otherwise.

This is relevant for `debug doesnotexist()`, which would crash with a
NameError otherwise.
blueyed added a commit to pdbpp/pdbpp that referenced this pull request Mar 9, 2019
blueyed added a commit to pdbpp/pdbpp that referenced this pull request Mar 9, 2019
blueyed added a commit to pdbpp/pdbpp that referenced this pull request Mar 9, 2019
blueyed added a commit to pdbpp/pdbpp that referenced this pull request Mar 9, 2019
* do_debug: harden and fix for py38-dev (v3.8.0a2)

Based on python/cpython#12103.

* ci: Travis: do not allow failure with py38
@zware
Copy link
Member

zware commented Mar 10, 2019

Yep, this is a rather better fix :). For NEWS, let's just write it as a new one:

The :mod:`pdb` ``debug`` command now gracefully handles all exceptions.

This does bring up the question, what behavior is desired from BaseException subclasses (KeyboardInterrupt in particular)?

@zware zware added needs backport to 3.7 🤖 automerge PR will be merged once it's been approved and all CI passed labels Mar 12, 2019
zware
zware approved these changes Mar 12, 2019
@miss-islington
Copy link
Contributor

miss-islington commented Mar 12, 2019

@blueyed: Status check is done, and it's a success .

@miss-islington miss-islington merged commit 3e93643 into python:master Mar 12, 2019
@miss-islington
Copy link
Contributor

miss-islington commented Mar 12, 2019

Thanks @blueyed for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 12, 2019
…onGH-12103)

This is relevant for `debug doesnotexist()`, which would crash with a
NameError otherwise.
(cherry picked from commit 3e93643)

Co-authored-by: Daniel Hahler <github@thequod.de>
@bedevere-bot
Copy link

bedevere-bot commented Mar 12, 2019

GH-12285 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Mar 12, 2019
…GH-12103) (GH-12285)

This is relevant for `debug doesnotexist()`, which would crash with a
NameError otherwise.
(cherry picked from commit 3e93643)


Co-authored-by: Daniel Hahler <github@thequod.de>


https://bugs.python.org/issue35931
blueyed added a commit to blueyed/rebased-pdbpp that referenced this pull request May 25, 2019
* do_debug: harden and fix for py38-dev (v3.8.0a2)

Based on python/cpython#12103.

* ci: Travis: do not allow failure with py38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 automerge PR will be merged once it's been approved and all CI passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants