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

Add global --debug option that forces printing full tracebacks. #726

Open
Paul-Ferrell opened this issue Jan 17, 2024 · 2 comments
Open
Assignees

Comments

@Paul-Ferrell
Copy link
Collaborator

Our succinct errors are nice, except when they're not informative enough to get us to the problem.

Add --debug. It should force the error handling in main.py and errors.pformat() to print full tracebacks.

Also, catching Exception outside of the thread results handling in resolver.py should add an exception layer that says - "Error in thread. Re-run with pav --debug <cmd> to get the full traceback, and file an issue on the pavilion github."

@Paul-Ferrell
Copy link
Collaborator Author

Currently main.py catches exceptions and pretty prints them. Add an option to disable that, and print the raw traceback instead.

Also, expand the pretty printing to encapsulate the whole of the main() call.
You'll find that we already do partial argument parsing - you can use that to pull out the '--debug'. (Maybe --show-exceptions)?

@Paul-Ferrell
Copy link
Collaborator Author

(Also make sure we're catching KeyboardInterrupt...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants