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

remote debug bug when go1.9.7 build cross platform #39340

Closed
zhangzhanli opened this issue Jun 1, 2020 · 3 comments
Closed

remote debug bug when go1.9.7 build cross platform #39340

zhangzhanli opened this issue Jun 1, 2020 · 3 comments

Comments

@zhangzhanli
Copy link

@zhangzhanli zhangzhanli commented Jun 1, 2020

Recently, I used go1.9.7 to build programs in Windows with goos=linux which would run on linux. But something wrong happened. The program running on linux works well but it doesn't work with remote debugging(in windows client to debug program running in linux, use dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec program). I think go build produced the wrong paths for source code. For example, when I go build D:\dos\1.go, it would produce D:\dos/D:/dos/1.go for source. I think this kind of action may lead to problem when debuging cross platform.

@davecheney
Copy link
Contributor

@davecheney davecheney commented Jun 1, 2020

@zhangzhanli Go 1.9.7 is out of support, see https://golang.org/s/release for details.

Can you please try to reproduce your issue with Go 1.14 and confirm if this is still a problem.

@zhangzhanli
Copy link
Author

@zhangzhanli zhangzhanli commented Jun 12, 2020

@zhangzhanli Go 1.9.7 is out of support, see https://golang.org/s/release for details.

Can you please try to reproduce your issue with Go 1.14 and confirm if this is still a problem.

I see this kind of problem solved since go1.11, Thank you.

@davecheney
Copy link
Contributor

@davecheney davecheney commented Jun 12, 2020

Thank you for confirming.

@davecheney davecheney closed this Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.