I was comparing CherryPy and Flask when I ran into the Werkzeug Debugger, which I really like. What wonders me:
Is it possible to integrate Werkzeug’s debugger into CherryPy? If so: how?
When I tried to integrate it myself, I got the console working (/console), but not the exception handler.
EDIT:
Seems like CherryPy catches the errors and handles them, before Werkzeug gets them.
In my edit I described that CherryPy catches the errors. In the config
throw_errorscan be set toTrue. For me, settingcherrypy._cprequest.Request.throw_errors = Truedid this. The whole code is:I’m sure, there are better ways to do it, but I’m a newbie concerning CherryPy and this hack worked for me.