Is it possible to debug golang lambdas remotely? I have tried to attach Visual Studio and VScode to a container spun up by LocalStack representing a lambda but it doesn’t work. To do this I tried exposing the lambda docker ports by setting LAMBDA_DOCKER_FLAGS=-p 19891:19891
and LAMBDA_REMOTE_DOCKER=0
in the localstack config but no success.
I found out that’s also because the Docker image used, which is lambci/lambda:go1.x
does not include the Delve debugger that is essential to make remote debugging possible.
Also, I have noticed that golang debugging is not mentioned in the documentation on remote debugging here: https://docs.localstack.cloud/tools/lambda-tools/debugging/
Is there some technique I’m not aware of to make this possible?