Vscode-docker: FastAPI Docker Debugger

Created on 9 Jan 2021  ·  7Comments  ·  Source: microsoft/vscode-docker

Description

As a VSCode user I want to be able to debug my FastAPI application living inside a Docker container. :tada:

More information

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:
image

Notes

  • I'll be working on this. I'll link the PR when I've finished. :factory_worker:
  • Please let me know if this feature will not be accepted, so I stop working on it :sunflower:
Python Debug feature fix released

Most helpful comment

This is now released in Docker extension version 1.11.0.

All 7 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bpasero picture bpasero  ·  5Comments

bradygmsft picture bradygmsft  ·  7Comments

oberfoerster picture oberfoerster  ·  6Comments

chrisdias picture chrisdias  ·  7Comments

dschuessler picture dschuessler  ·  5Comments