bpo-32515: Add an option to trace to run module as a script#5134
Merged
Conversation
9bd9593 to
b91cbb4
Compare
Adds a new option in trace that allows tracing runnable modules. It is exposed as `--module module_name` as `-m` is already in use for another argument.
Contributor
Author
|
@ncoghlan @pablogsal do you think it is worth getting this before the 3.8 cut on Monday? It is the last module missing for https://bugs.python.org/issue9325 🎉 I've pushed a small change I noticed, argv was being set as a tuple, not a list. (So cool, I was debugging it as |
Contributor
|
Thanks for the ping, and yep, sounds like a good idea to me :) |
DinoV
pushed a commit
to DinoV/cpython
that referenced
this pull request
Jan 14, 2020
Adds a new option in trace that allows tracing runnable modules. It is exposed as `--module module_name` as `-m` is already in use for another argument.
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new option in
tracethat allows tracing runnable modules.If you find it appropriate I can add some further tests that verify things like:
https://bugs.python.org/issue32515