godebug run command not works
the source of hello.go is
package main
import (
"fmt"
)
func main() {
x := "Hello"
_ = "breakpoint"
y := "World"
_ = "breakpoint"
z := "Go"
_ = "breakpoint"
w := x + " " + y + " " + z
_ = "breakpoint"
fmt.Println(x, y, z)
fmt.Println(w)
}
godebug run command shows error message like:
P:\go\src>godebug run hello.go
# command-line-arguments
C:\go\pkg\tool\windows_386\8l.exe: dwarf: unresolved references after first dwar
f info pass
however, the following command works well. (tested in git shell on win)
Home@HOME-PC /p/go/src
$ godebug output hello.go > hello.debug.go
Home@HOME-PC /p/go/src
$ go run hello.debug.go
-> _ = "breakpoint"
(godebug) l
...
... i mistype the command?
Strange. I'm not sure what happened here. What version of Go are you using?
unintentionally, i make you wait for me for a long time. i'm sorry.
go version devel +4ddd751 Mon May 4 06:38:54 2015 +0000 windows/386
same problem here... go version go1.6 linux/amd64
Actually I solved this by adding $GOPATH/bin to my PATH. Don't know how to solve that in windows though.
Despite that, I now get the following error:
godebug run clock.go fork/exec /tmp/godebug235875476/godebug.a.out: permission denied
have the same issue https://github.com/mailgun/godebug/issues/23#issuecomment-219670288
$go version
go1.6 linux/amd64