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.