Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Need to debug your FastAPI application with Docker? Don't worry! 😎

License

Notifications You must be signed in to change notification settings

Kludex/fastapi-docker-debug

Repository files navigation

Warning Now that VSCode natevily supports FastAPI for debugging purposes, I'll archive this project.

Debug FastAPI Applications on Docker 🐋

This is a very simple demonstration on how to debug your FastAPI application via Docker container. 😎

We'll make use of the following tools:

So please, if you don't have them installed, feel free to do so.

Usage 🖥️

Very simple app and usage. Let's not complicate things here! 😇

Build and run your docker-compose with the following command:

docker-compose -f docker-compose.debug.yaml up

Ok, what's happening? Looks like the process is hanging, but don't worry!

Go to your VSCode and press F5.

At this point, our debugger is connected! You now can add breaking points and debug your applications! 😙

License 📖

This project is licensed under the terms of the MIT license.

About

Need to debug your FastAPI application with Docker? Don't worry! 😎

Resources

License

Stars

Watchers

Forks

Sponsor this project