SpeedCoder5on Stack Overflow • Recommends
On “How do I debug Flask App in VS Code”
As of November 2019 I the found the following useful:
New Way (basic & flakey) - "Old Way" Below is Better
https://code.visualstudio.com/docs/python/tutorial-flask
Assuming a simple app.py such as:
import flask
app = flask.Flask(__name__)
@app.route('/')
def index():
return "Hello world!"
And .vscode/launch.json added to your project by adding Python Flask Debug Configuration from the Debug Explorer drop down.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Flask",
"type…