Skip to content
0:00 / 0:00

#flask#visualstudiocode#debugging

Setting Up a Flask Application in Visual Studio Code

Miguel Grinberg

15K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • Presented by Miguel Grinberg
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

28K views7 years ago1 recommendation

Web developmentTools and practicePythonVim, Emacs and editors

Miguel Grinberg demonstrates how to configure and debug a Flask application using Visual Studio Code.

This is a demonstration of how to set up a Flask application with the Visual Studio Code IDE. A written article about this topic is available at blog.miguelgrinberg.com/post/setting-up-a-flask-application-…. Support my work on Patreon: patreon.com/miguelgrinberg

Why it's here

1 person recommends this

What people say. Recommended as a helpful guide for configuring Flask debugging in Visual Studio Code.

Moments people linked to

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…
7View the answer