How to debug a Flask app
Use loggers and print statements in the Development Environment, you can go for sentry in case of production environments.
How are you meant to debug errors in Flask?  Print to the console?  Flash messages to the page?  Or is there a more powerful option available to figure out what's happening when something goes wrong?