Starlette: Include more information in `DebugMiddleware`.

Created on 18 Jul 2018  路  5Comments  路  Source: encode/starlette

Right now we just display a raw format_trackback().

It'd make sense to have a proper page with lines of context around each file in the stack, and local variables at each point. (As with Django or Werkzeug's debugger pages)

Most helpful comment

What about integrating the werkzeug debugger itself? This feature was there previously in APIStar.

All 5 comments

What about integrating the werkzeug debugger itself? This feature was there previously in APIStar.

In the case that not includewerkzeug like suggest @supriyo-biswas and we go for our template. Shall we include some styling as well? I have a basic template that include locals but without any styling. Maybe some minor js interaction as well.

I鈥檇 be happy to take ideas from the Django and Werkzeug implementations. Werkzeug鈥檚 debugger is WSGI-based, so a clean port of it would need some adapting.

I鈥檇 suggest approaching this iteratively, let鈥檚 start with a bit more info and some basic styling, then work on things from there.

Ok, perfect!

Related to #179

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dgrahn picture dgrahn  路  4Comments

koddr picture koddr  路  6Comments

jordic picture jordic  路  6Comments

PeriGK picture PeriGK  路  5Comments

rugleb picture rugleb  路  4Comments