Reputation: 25964
skaffold version: v1.35.1
Goland: 2021.2.4
Cloud Code: 21.11.1
Just create the Sample Application:
Go: Guestbook or Hello World
It builds and deploys well enough, but when setting a breakpoint it says:
cannot find debugger path for <path to main.go>
Upvotes: 1
Views: 2414
Reputation: 11
This error will also happen if you have -trimpath
set in your Run config under "Go tool arguments" even if have go Modules enabled as mentioned above.
Upvotes: 1
Reputation: 6496
It looks like you need to ensure that you have Enable Go modules integration
checked in Preferences -> Go -> Go Modules
.
Upvotes: 4