Bug: Can't trigger delve debug server when Handler name is bootstrap #7646
Labels
blocked/more-info-needed
More info is needed from the requester. If no response in 14 days, it will become stale.
Description:
I was running local debug for my go lambda function by using go1.x runtime. And there is a situation beyond understanding.
At first, I just generated a go lambda project by "sam init" (the simplest one 'hello world'), which the 'Handler' name is 'bootstrap' in template.yml. Then I used "sam local start-api -d 8099 --debugger-path=**\go\bin\linux_amd64 --debug-args="-delveAPI=2"" and tried to attach with goland remote debug client, but it failed. After I compared with others' project, I finally get the debugger attached by changing the 'Handler' name to sth else like 'hello-world'. I don't understand why a Handler name in template.yml would effect the trigger of delve. Could you explain it please?
Steps to reproduce:
Observed result:
The debugger is disconnected all the time. And the request went through without break point stop.
Expected result:
The 'Handler' name should not effect debugger.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.127Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: