godebug icon indicating copy to clipboard operation
godebug copied to clipboard

godebug run command not works

Open propag opened this issue 10 years ago • 5 comments

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?

propag avatar May 10 '15 14:05 propag

Strange. I'm not sure what happened here. What version of Go are you using?

jeremyschlatter avatar May 11 '15 04:05 jeremyschlatter

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

propag avatar May 15 '15 16:05 propag

same problem here... go version go1.6 linux/amd64

devtoro avatar May 17 '16 09:05 devtoro

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

devtoro avatar May 17 '16 09:05 devtoro

have the same issue https://github.com/mailgun/godebug/issues/23#issuecomment-219670288

$go version 
go1.6 linux/amd64

resilva87 avatar Aug 15 '16 22:08 resilva87