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 support to prepend handler #587
Comments
The users of Whoops can perform this operation themselves if they need it. I believe most of the users will never encounter this situation, so I don’t think there’s a lot of valu in adding this feature. Change my mind if you have specific use cases! |
I could be used if program first add some general handlers, but prepend additional handler under certain condition (maybe for additional debugging or other operations). |
Thanks! I think for now we can afford to make the users perform the operation themselves. If we later see more use cases for this popup, we’ll revisit! |
Ok. Do you have any solution how can users prepend handler themselves? My solution above could be inefficient because it needs to remove and then re-add all handlers. |
Your solution above is absolutely adequate! I doubt you’ll measure a noticable impact on performance at all. |
#630 has just added this, released in 2.4.0. |
Add support to prepend handler. When using this, handler should be added before other handlers. Also, don't forget to update
RunInterface
with new function.I found simple solution:
The text was updated successfully, but these errors were encountered: