Initialize Flask debug variable to the correct setting

The debug state in Flask is never changed, only Werkzeug gets set with the correct debug state. Because if that the debugger is not activated.