zoukankan      html  css  js  c++  java
  • IDE Goland DEBUG报错(could not launch process: decoding dwarf section info at offset 0x0: too short)

    背景:

    在升级GO版本到1.11后发现Goland的Debug报错,如下:could not launch process: decoding dwarf section info at offset 0x0: too short。

    原因:

    Goland的dlv不是新版本,导致不能debug调试。

    解决:

    1、更新dlv,执行如下命令:

    go get -u github.com/derekparker/delve/cmd/dlv

    2、修改Goland的配置,Help->Edit Custom Properties中增加新版dlv的路径配置:dlv.path=$GOPATH/bin/dlv

    注意:$GOPATH为你的gopath路径,使用绝对路径。

    3、重启Goland IDE。再次使用debug调试工具,就没有问题了。

    4、如果go get -u github.com/derekparker/delve/cmd/dlv 拉去不下来,

         安装gopm包管理工具,利用镜像,速度比go get快很多。

         go get -v -u github.com/gpmgo/gopm

         运行 gopm get -g github.com/derekparker/delve/cmd/dlv 来下载

        下载完后在你的GOPath路径下运行go install github.com/derekparker/delve/cmd/dlv,会在你的GOPath/bin路径下生成dlv.exe

  • 相关阅读:
    ecshop 整合 kindedotor
    css 一些小笔记
    linux 使用 随记录
    GIPZ 压缩
    js 代码 随记
    map和list循环遍历
    向数据库批量处理事件
    链表和数组的优劣比较
    内存对齐 和 sizeof小结
    C++的默认构造函数与构造函数
  • 原文地址:https://www.cnblogs.com/cnhk19/p/12009533.html
Copyright © 2011-2022 走看看