silvermopa.blogg.se

Download vscode xdebug docker
Download vscode xdebug docker











If that's not the case, you can install it manually Go installed (duh) - since modules went GA I've only been using it with modules so no more GOPATH headachesĭelve - nowadays it comes as part of the tooling which the Go extension asks you to install on first run.The closest working solution I found was here.īut for hot reloading I was already using Air, so why should I script my solution like a barbarian? However, on Air github there's a discussion around using Delve with Air with no definitive solution (also because some people use it locally while others remotely and yet more people use it in Docker). With Go is easy, but Go is just one of the tools used - I wanted a way that's in line with everyone else (Typescript / PHP and others) This means I can't use Remote Containers in the intended way, as I can't port all my tooling inside the container / git credentials / etc. So many, in fact, that the Docker Compose for my Go project is but a small part of a project spanning over 18 sub-projects, each with a Compose stack where all stacks connect on the same Compose network so that you can start locally just the services you need so they can communicate.įor Apple M1 / ARM, the only change is highlighted for the Dockerfile. I need to be able to develop with VSCode on a local codebase (to reuse Git credentials mainly) but the code should run on a Docker Compose development stack with lots of moving parts. Should you also want hot reloading (which you do when using Docker, otherwise you need to stop/restart containers and the debug session manually on every change).īefore getting hands-on, I'll go over my use case and what makes it a bit different. If you're developing in/for containers though, it gets a bit more complicated.

download vscode xdebug docker

If you're working locally, using Go's top debug tool (Delve) is straightforward.

download vscode xdebug docker download vscode xdebug docker

I'd rather pay a more moderate amount for the Go VSCode extension.īetween the Docker extension, the Remote Docker (which allows you the use of a container as if it were a local environment) and official Go extension (that also brings you all the Go tooling if you don't already have that) the development experience is top notch. Sure, Golang is great in itself but there's little there to justify the EUR 200 price for a year. I have to say that Visual Studio Code, for all its pros and cons for various language, it's a totally awesome IDE for Go.













Download vscode xdebug docker