How do I configure Visual Studio Code to debug a Flask (Python) web application?
For example, when I set the debugger in the view function, it should allow me to step
I don't use Visual Studio Code for Python development. However, Flask has a really nice debugging option, that allows you to debug from a browser. This is not a solution for Visual Studio Code, but a workaround.
When you define your application, pass the debug = true
parameter to enable debugging mode. Then you can debug your code from the browser.
app = Flask(__name__)
app.config['DEBUG'] = True
More information can be found here.