Printing full traceback for exceptions #1017
Closed
scottstanie
started this conversation in
Polls
Replies: 1 comment 2 replies
-
Good point @scottstanie. It's essential to show the full traceback msg, one of Python's best parts. Is there a solution for it? Tagging @avalentino for ideas. I mainly use individual scripts, such as |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now the CLI catches all exceptions and prints only the one top message without context:
MintPy/src/mintpy/__main__.py
Lines 627 to 631 in c305e13
This means that for someone new (like me), I can't really figure out the error without a bunch of searching through the code for the matching phrase instead of having the full line number printed out in the traceback.
Although the stacktrace is printed with
log.debug("stacktrace:", exc_info=True)
, but it's unclear how to enable debug logging, as there's no--debug
option.2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions