Skip to content

dlv problem #993

Description

@excavador

Hello,

I am trying to debug my golang program by dlv on OSX.
bazel 0.7.0, rules_go latest.

If I build program by bazel, I receive error

➜ dlv attach 74960
could not attach to pid 74960: decoding dwarf section info at offset 0x0: too short

I found same issue for dlv:
https://github.com/derekparker/delve/issues/79
But static linking does not work on OSX (according to rules_go documentation).

If I build program by

go build

dlv able to attach to my program

How to build golang binaries in bazel on OSX for working with dlv?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions