quart icon indicating copy to clipboard operation
quart copied to clipboard

Debug mode isn't working

Open codepilotsf opened this issue 1 year ago • 1 comments

In debug mode when creating a route which has an error in it (such as a division by zero error), the error page with stack trace is not shown.

Follow the official QuickStart: https://quart.palletsprojects.com/en/latest/tutorials/quickstart.html

Add this route

@app.route('/err')
async def err():
    return str(1/0)

Navigate to /err page.

I expect to navigate to that page and see a nicely formatted error stack trace. Instead, I get a generic browser generated HTTP ERROR 500 message.

Environment: Python 3.12.6 Quart 0.19.6

codepilotsf avatar Sep 30 '24 23:09 codepilotsf

Set TESTING =True in the app config. That's what works currently, there's an open pr fix for this

Beetroit avatar Mar 21 '25 21:03 Beetroit