sam local start-api , windows, golang lambda, not starting delve inside the container #7991
dan-dragan
started this conversation in
Architechtures
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
need help with debugging locally (attaching, breakpoints) a golang lambda on windows using VSCode.
The lambda handles a API Gateway post:
the template used is as follows:
commands used ( in bash):
output (I can POST to the dev server URL at 127.0.0.1:3000/ using POSTMAN) :
My launch.json:
when choosing vscode\Run\ StartDebugging I get the following output:
a 'ps aux' inside the local lambda container shows indeed no delve running, but the 'bootstrap' lambda binary is running:
As I understand it, starting the lambda in debug mode with the (linux) dlv binary available should result in the aws-sam local injecting the dlv in the container and running it and this is not happening. Note in the output of the sam local start api there is no pause to attach the debugger either or any output that delve is running on the assigned debug port (9989). I have been struggling with this for awhile, any idea is appreciated. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions