Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
remote debug bug when go1.9.7 build cross platform #39340
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.