piercefreeman / mountaineer

Mountaineer is a batteries-included web framework for Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrap internal server errors during development in a custom response page

piercefreeman opened this issue · comments

During local debugging it's convenient to still have auto-refreshes on the browser even if there's an internal server error, since these will often get cleared up via changes in the backend codebase.

Introduce a new debugging view, which the system returns if it's running in development mode. This should be a standard (system provided) html page / react component that imports the live reload component & embeds the exception stack trace on the server.

Current styling gives the full stack trace from the python layer, which includes any server-rendered javascript traces.

Screenshot 2024-02-24 at 8 49 18 PM