As a VSCode user I want to be able to debug my FastAPI application living inside a Docker container. :tada:
The web framework is growing, and I think the community will benefit from this feature. :sunglasses:
Besides, a PR was accepted on the Python VSCode extension with the same purpose, but without Docker: https://github.com/microsoft/vscode-python/issues/14247
The idea is to have the option Python: FastAPI
on the Docker: Initialize for Docker debugging
:
Thanks for the suggestion! As long as the Python extension supports FastAPI remote debugging (which it probably does), then this should be possible. We'll take a look.
EDIT: I had missed that you'd be working on a PR. Thanks!
Fwiw, it should be similar to what's on the Flask one.
Basically this: https://github.com/Kludex/fastapi-docker-debug/
@Kludex yes, please submit a PR, and thank you for helping us make the extension better!!
@karolz-ms @bwateratmsft Thank you for accepting the idea! I'll be pushing a PR in the next days.
Hey @Kludex, any updates on this?
@bwateratmsft I've started. But I lost track of it.
I'll be working (and hopefully) finishing it this weekend. :)
This is now released in Docker extension version 1.11.0.
Most helpful comment
This is now released in Docker extension version 1.11.0.