decoding dwarf section info at offset 0x0: too short

前端 未结 4 1549
陌清茗
陌清茗 2020-12-11 01:59

I am using JetBrains GoLand and I am trying to debug my go file and I am getting the following error:

decoding dwarf section info at offset 0x0: too s

4条回答
  •  孤城傲影
    2020-12-11 02:43

    For my Mac the problem is related to the dlv package as installed by Golang plugin.

    • Install delv and,
    • check the path of dlv as executed by IntelliJ (in the console).

    Go to this directory

    ($HOME//Library/Application Support/IntelliJIdea2017.3/intellij-go/lib/dlv/mac) 
    
    • and rename dlv to any other name. Get the right dlv executable by using

      which dlv (/usr/local/Cellar/go/1.11.1/libexec/bin/dlv for my computer) 
      
    • and add a symbolic link

      (ln -s /usr/local/Cellar/go/1.11.1/libexec/bin/dlv dlv).
      

提交回复
热议问题