Good morning (PST) everyone! I have a question abo...
# sst
m
Good morning (PST) everyone! I have a question about VS Code debugging. I've had zero issues debugging handlers written in Node, but is it possible to debug Go runtimes as well?
My initial attempt yielded a failed debug sessions with:
Copy code
Starting: /home/mclifford/go/bin/dlv-dap dap --check-go-version=false --listen=127.0.0.1:45873 --log-dest=3 from /home/mclifford/Development/github.com/cliffom/sst-bff-demo/src/handlers/api/users
DAP server listening at: 127.0.0.1:45873
2021/10/15 10:58:36 expected AWS Lambda environment variables [_LAMBDA_SERVER_PORT AWS_LAMBDA_RUNTIME_API] are not defined
Process 16573 has exited with status 1
Detaching
Process 16573 has exited with status 1
Detaching
dlv dap (16407) exited with code: 0
f
Hey @Michael Clifford which version of SST r u using?
m
0.46.0
It works fine for all of my Node lambdas - but I have a repo that has a set of lambda written in Node and Go
and I can't get debugging to work with the Go lambdas (currently trying an attach to process launch config)
t
Based on the error it looks like we might need to make some changes to support this
I need to look into how the go debugger works under the hood
m
Ok. I wanted to be sure I wasn't missing something but didn't see any documentation for debugging Go functions in SST
It would be incredibly useful to have that support
f
Hey guys, I created a GH issue to track this https://github.com/serverless-stack/serverless-stack/issues/932