adriencaccia / vscode-flask-debug

Flask application with debugging in VS Code and hot-reload πŸ”₯

Home Page:https://blog.theodo.com/2020/05/debug-flask-vscode/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository was made to as a proof of concept of the article Flask Debugging in VS Code with Hot-Reload πŸ”₯.

Reading the article is strongly recommended πŸ˜‰.

πŸ”§ Prerequisites

πŸŽ‰ Getting Started

  • Install the requirements

    make install
  • Run the app with make command :

    • Using flask runner
      • Server with Hot-Reloading
        make flask
      • Server with Debugger and Hot-Reloading
        make flaskdebug
    • Using gunicorn runner
      • Server with Hot-Reloading
        make gunicorn
      • Server with Debugger and Hot-Reloading
        make gunicorndebug
  • Run the app with VSCode Tasks

    Press simultaniously CTRL + ALT + T and you will get a popup widow were you can choose your option 

    VSCode Task Options

If you want to run the app as a top-level script, checkout to the flask-as-a-script branch.

git checkout flask-as-a-script

About

Flask application with debugging in VS Code and hot-reload πŸ”₯

https://blog.theodo.com/2020/05/debug-flask-vscode/


Languages

Language:Python 46.9%Language:Makefile 32.3%Language:Dockerfile 20.8%