Today we were trying to debug Metricbeat (on commit #cff3e40c) using Visual Studio Code v1.27.2 and Delve debugger but it failed with the error:
|
|
Our environment was:
|
|
Our Visual Studio Code debug configuration was the following:
|
|
After 1 hour of searching in the internet we found that starting from go 1.10.x the .debug_frame is missing entirely, so Delve could not be used.
Solution
In order to make debugging with Delve work again we downgraded to go 1.9.7.
You can find more information regarding the problem in the following links:
- Elastic Discuss question #146817
- olang/go #23733
- derekparker/delve #860
- orbs-network/orbs-network-go #245
Have a nice night!
P.S. TAKIS R.I.P. ! We will never forget! We had eaten the best gyros in Triandria, Thessaloniki!