Skip to content

Stacktrace in debugger middleware #280

@aronerben

Description

@aronerben

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions