-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Debug mode flag #9428
Debug mode flag #9428
Conversation
37c6168
to
235643a
Compare
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
c75ad51
to
3edc8c0
Compare
3edc8c0
to
f3cf5c1
Compare
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
f3cf5c1
to
9f84633
Compare
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.
There should be a follow-up to add this to the documentation.
@uranusjr you mean it should be a separate PR or can I add it to this one? |
Up to you, I’m fine with either. |
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
9f84633
to
45800f6
Compare
@uranusjr looks like it's already handled automatically by the It looks like this: Would you like me to add something more? |
45800f6
to
3ab977c
Compare
I was thinking about ading a brief write-up in the Development chapter since this would make the option most discoverable by contributors. I think implementation-wise this PR is good to go, but want another maintainer to merge this to make sure I’m not the only one thinking this is a good idea. |
Oh, I see. I'll follow up with another PR with a short write-up on this in the docs after this one is merged. |
@MrMino Any chance you'd be willing to update this PR, to resolve the merge conflicts on this? |
@pradyunsg Sure thing, just give me a day or two. |
3ab977c
to
edc6d31
Compare
@pradyunsg Done. The only change to my hunks is the (see |
edc6d31
to
a5741d4
Compare
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.
LGTM generally, please fix the remaining type annotation comment mentioned above.
This flag makes the main subroutine (cli.base_command.Command.run) withold from intercepting unhandled exceptions. This means, that debugging via "python -m pdb -m pip" is now possible.
a5741d4
to
03e0053
Compare
Done. |
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.
One minor thing, that I'll do myself prior to merging.
Thanks for doing this @MrMino! ^>^ |
@uranusjr I guess I should now follow this up with the docs write-up, right? Separate section at the end of Getting started (above "Building Documentation") maybe? |
That sounds about right to me. |
Fixes #9349.
Adds
--debug
flag to CLI.This is how it works with
ipdb -m
(it's a bit bloated because ofDEBUG
but yes, you can now travel up the exception chain post-mortem):