fastapi-docker-debug
fastapi-docker-debug copied to clipboard
Need to debug your FastAPI application with Docker? Don't worry! :sunglasses:
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.