-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
099307f
commit 87dc3b1
Showing
2 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
# if usually you called | ||
path/to/some_external_script.py --some-arg some-value | ||
# or | ||
python3 path/to/some_external_script.py --some-arg some-value | ||
# or | ||
python3 -m some_external_script --some-arg some-value | ||
# or | ||
some_external_command --some-arg some-value | ||
path/to/some_external_script.py --some-arg some-value | ||
# or | ||
python3 path/to/some_external_script.py --some-arg some-value | ||
# or | ||
python3 -m some_external_script --some-arg some-value | ||
# or | ||
some_external_command --some-arg some-value | ||
|
||
|
||
# then you can upgrade the traceback like this: | ||
# help: | ||
traceback-with-variables --help | ||
|
||
# script and it's args | ||
traceback-with-varaibles path/to/some_script.py --some-arg some-value ... | ||
|
||
# command known to be a script (e.g. 'pip') and it's args | ||
traceback-with-varaibles pip ... | ||
|
||
# help: | ||
traceback-with-variables --help | ||
# a module (e.g. 'http.server') and it's args | ||
traceback-with-varaibles http.server ... | ||
|
||
# script and it's args | ||
traceback-with-varaibles path/to/some_external_script.py --some-arg some-value | ||
|
||
# command known to be a script (e.g. 'pip') and it's args | ||
traceback-with-varaibles some_external_command --some-arg some-value | ||
# more | ||
# with python -m | ||
python3 -m traceback_with_variables path/to/some_script.py --some-arg some-value | ||
|
||
# with python -m | ||
python3 -m traceback_with_variables path/to/some_external_script.py --some-arg some-value | ||
# script and it's args, customized | ||
traceback-with-varaibles --max-value-str-len 100 --num-context-lines 3 path/to/some_script.py --some-arg some-value | ||
|
||
# script and it's args, customized | ||
traceback-with-varaibles --max-value-str-len 100 --num-context-lines 3 path/to/some_external_script.py --some-arg some-value | ||
# command known to be a script (e.g. 'pip') and it's args, customized | ||
traceback-with-varaibles --max-value-str-len 100 --num-context-lines 3 some_cmd --some-arg some-value | ||
|
||
# command known to be a script (e.g. 'pip') and it's args, customized | ||
traceback-with-varaibles --max-value-str-len 100 --num-context-lines 3 path/to/some_external_script.py --some-arg some-value | ||
# a module (e.g. 'http.server') and it's args | ||
traceback-with-varaibles --max-value-str-len 100 module_name --some-arg some-value |