1 前言

Goland版本:2018.1.5

Go:1.11.2

此版本调试不了bug,而且有时会显示could not launch process: decoding dwarf section info at offset 0x0: too short。第二个bug是会去解析字符串中大括号,例如(Get single todo: curl -g 'http://localhost:8080/graphql?query={todo(id:"b"){id,text,done}}'),导致编译不通过。

2 解决方案

升级到Goland 2及以上版本即可。

下载地址:https://www.jetbrains.com/go/download/#section=windows

3 旧方案

link:https://blog.csdn.net/woodcutter_man/article/details/83154788 

应该是Goland的dlv不是新版本导致不能debug。

解决:

1、更新dlv,go get -u github.com/derekparker/delve/cmd/dlv

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

本人测试无效。

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2021-12-09
  • 2022-02-06
  • 2022-12-23
  • 2021-04-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
相关资源
相似解决方案