mailgun / mailgun/godebug

godebug run command not works

Open
#23 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.5k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the hello.go example and reproduce the failure from the reported Windows command prompt using godebug run hello.go. Compare its behavior with godebug output hello.go followed by go run hello.debug.go; done means the run command handles this example without the reported DWARF unresolved-reference error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.