Hacker News new | ask | show | jobs
by iofiiiiiiiii 1847 days ago
A little known feature is that the Docker integration in Visual Studio gives you this automatically.
3 comments

I think PyCharm Professional's docker-compose remote interpreter[0] does too. It was a lot of setup but it's the only way I know to have your code run inside containers and actually be able to stop at breakpoints inside them. (I don't know much about Docker.)

0: https://www.jetbrains.com/help/pycharm/using-docker-compose-...

Container fast run or something like that right ? If you observe the commands it does, it simply mounts everything it needs on the container and uses the first stage of the docker file (which is usually a base image) to run your stuff.
Pretty sure they are talking about https://code.visualstudio.com/docs/remote/containers
We use this where I work and love it. It has the added benefit of letting you package preferred vscode extensions with the devcontainer as well.