How to debug a Flask app
If you're using VSCode, press F5 or go to "Run" and "Run Debugging".
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?