from gevent.wsgi import WSGIServer from werkzeug.serving import run_with_reloader from werkzeug.debug import DebuggedApplication app = Flask(__name__) @run_with_reloader def run_server(): http_server = WSGIServer(('', 5000), DebuggedApplication(app)) http_server.serve_forever() run_server()
References
https://coderwall.com/p/q2mrbw/gevent-with-debug-support-for-flask