Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set breakpoint with go1.14beta1 on windows #1855

Closed
nd opened this issue Feb 5, 2020 · 2 comments
Closed

Cannot set breakpoint with go1.14beta1 on windows #1855

nd opened this issue Feb 5, 2020 · 2 comments

Comments

@nd
Copy link
Contributor

nd commented Feb 5, 2020

  1. What version of Delve are you using (dlv version)?
Delve Debugger
Version: 1.3.2
Build: bc9d95d615987ae78b946dd18ef1989775c705e8
  1. What version of Go are you using? (go version)?
go version go1.14beta1 windows/amd64
  1. What operating system and processor architecture are you using?

windows/amd64

  1. What did you do?

Debug the program (with go version check disabled):

package main

func main() {
	println("ok")
}

and try to set a breakpoint at line 4 via the b main.go:4 command.

  1. What did you expect to see?

Breakpoint set

  1. What did you see instead?

Command fails with an error:

Location main.go:4 ambiguous: c:/Path/to/main.go, C:\Path\to\main.go

Running the sources command also shows 2 paths different only in a path separator. Trying to set breakpoint using a full path fails as well.

@aarzilli
Copy link
Member

aarzilli commented Feb 5, 2020

Support for Go 1.14 hasn't been merged in yet. This thing in particular was a bug in Go which would be fixed if you had built from master but regardless delve 1.3.0 will be seriously broken with go 1.14.

@derekparker
Copy link
Member

Now that support for Go 1.14 has been merged, we can close this. Please reopen if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants