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

[REQUEST] Support python -m rich.traceback myscript.py #3441

Closed
f0k opened this issue Aug 2, 2024 · 3 comments
Closed

[REQUEST] Support python -m rich.traceback myscript.py #3441

f0k opened this issue Aug 2, 2024 · 3 comments

Comments

@f0k
Copy link

f0k commented Aug 2, 2024

How would you improve Rich?

The Python debugger pdb supports running a script with debugging enabled by changing the command line call from python myscript.py --args to python -m pdb myscript.py --args. It would be great to have the same functionality for running a script with rich tracebacks installed: python -m rich.traceback myscript.py --args. The argument-less python -m rich.traceback could continue to display an example as before.

What problem does it solve for you?

This feature would allow using rich tracebacks occasionally for debugging without requiring to change any code or installing sitecustomize.py (especially when frequently changing environments).

Copy link

github-actions bot commented Aug 2, 2024

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@willmcgugan
Copy link
Collaborator

I feel this is low priority. But happy to consider a PR!

Copy link

I hope we solved your problem.

If you like using Rich, you might also enjoy Textual

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

No branches or pull requests

2 participants