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

Stacktrace in debugger middleware #280

Open
aronerben opened this issue Feb 18, 2022 · 0 comments
Open

Stacktrace in debugger middleware #280

aronerben opened this issue Feb 18, 2022 · 0 comments

Comments

@aronerben
Copy link

aronerben commented Feb 18, 2022

Hello, currently the debugger middleware HTML response has two sections, Error and Request. What do you think of a new section Stacktrace/Backtrace? This would then print the backtrace provided by Printexc.get_backtrace ().

Some context:
When I'm building an application and I start out with a bunch of failwith "TODO" placeholders (or god forbid someone uses partial functions 😱 ), I at some point find myself looking for raised Errors a lot or writing an ad-hoc backtrace printer. I thought we could simply include it in Opium.

Let me know what you think! I'll gladly provide a PR if you deem it sensical :)

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

No branches or pull requests

1 participant