Chris G.
Chris G.

Reputation: 25964

cannot find debugger path for <path to main.go>

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

Answers (2)

geoffunger
geoffunger

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

Matthew
Matthew

Reputation: 6496

It looks like you need to ensure that you have Enable Go modules integration checked in Preferences -> Go -> Go Modules.

Upvotes: 4

Related Questions