-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Possible integrations with better-exceptions #3703
Comments
@jnoortheen as far as i understood pytest already does somehing comparable with its traceback, and with the -l option you can get all locals |
Yes that is right. But it returns only the locals of last frame. This library will show the locals in all the frames/function calls up to the start. It is not perfect but highly helpful debugging. |
pytest has various hooks to interact with the exception, i believe the make report hook is the perfect place to grab the exception info and pass it on to the lib |
That is looks like a good place to start. I will check that out. |
Is it possible to use better-exceptions ?.
It is better to see the local state of variables upon failing. It helps to fixing it quickly.
Or there is any way to catch the exceptions as a pytest plugin and use this library to format the exception traceback?
The text was updated successfully, but these errors were encountered: