Warning Now that VSCode natevily supports FastAPI for debugging purposes, I'll archive this project.
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.
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! 😙
This project is licensed under the terms of the MIT license.