Flask Debugging in VS Code with Hot-Reload 🔥

Flask Debugging in VS Code with Hot-Reload 🔥

Learn how to set up the powerful VS Code debugger with hot-reload for your Dockerized Flask application. Let's see how to setup a Dockerized Flask app with an efficient debugging flow 🎉!

I love using a debugger when I code. It allows me to quickly understand why something does not work as intended, but also to get a faster and deeper understanding of code I did not write.

Since I am so fond of using a debugger, when I started working on a Dockerized Flask application, my first online search was to find how to set one up for my application. But all the solutions I found had different flaws:

  • ❌ The application port would be changed every time I started the application with the debugger
  • ❌ Flask's wonderful hot-reload feature (the server restarting after saving changes to the code) was not supported
  • ❌ The usage was clunky. To make the debugger work, I had to consistently add then remove multiple lines of work

So, I decided to craft my own debugger setup to fix all those problems.

Let's see how to setup a Dockerized Flask app with an efficient debugging flow 🎉!

flask vscode docker visual-studio

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub.

Live: Python - Docker e Docker Compose - Projeto Flask extensions

Neste episódio colocamos o serviço #python para rodar com #Docker e Docker compose e o próximo passo será a #api Multistreaming with https://restream.io/?ref...

Visual Studio Code C++ Extension July 2020 Update

The July 2020 update of the Visual Studio Code C++ extension is now available. This latest release offers brand new features, such as the visualization of Doxygen comments and support for Logpoints while debugging (GDB/LLDB), along with a bunch of enhancements and bug fixes.

Visual Studio 2019 v16.7 Preview 2 Available Today!

Today we are releasing 16.7 Preview 2 with new features in C++ Connection Manager, .NET Productivity, Git Productivity, and Local Process with Kubernetes.

Working with Docker in Visual Studio Code

Working with Docker. Whether you are a seasoned Docker developer or just getting started, Visual Studio Code makes it easy to author Dockerfile and docker-compose.yml files in your workspace. Visual Studio Code even supports generating and adding the appropriate Docker files based on your project type. Docker is a very popular container platform that lets you easily package, deploy, and consume applications and services.