douyao1994 2019-09-24 14:01 采纳率: 100%
浏览 51

Windows上的VIM-Go调试器导致“找不到Goroutine”

I am setting up a vim-go environment on Windows, which is working for the most part. The one thing I cannot get to work is the debugger. I start it with :GoDebugStart. This already leads to a lot of errors regarding the debug layer=rpc. Then I get more rpc related errors when trying to create the breakpoint. At the end when starting to debug with :GoDebugNext it complains about Goroutine not found. Does anybody have any similar issues or has an idea what this could be or what is missing? Thanks!

Here is some of the error output:

ERR: 2019-09-24T16:43:37+02:00 info layer=debugger launching process with args: [C:\Users\henri\AppData\Local\Temp\VIA7813.tmp]

ERR: 2019-09-24T16:43:53+02:00 debug layer=rpc <- RPCServer.CreateBreakpoint(rpc2.CreateBreakpointIn{"Breakpoint":{"id":0,"name":"","addr":0,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":38,"Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":null,"totalHitCount":0}})

ERR: 2019-09-24T16:43:53+02:00 info layer=debugger created breakpoint: &api.Breakpoint{ID:1, Name:"", Addr:0x4d179f, File:"C:/Users/henri/go/src/local/flightGenerator/readAirports.go", Line:38, FunctionName:"main.main", Cond:"", Tracepoint:false, TraceReturn:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0}

ERR: 2019-09-24T16:43:53+02:00 debug layer=rpc -> *rpc2.CreateBreakpointOut{"Breakpoint":{"id":1,"name":"","addr":5052319,"file":"C:/Users/hen

Also, after starting the debugging process with :GoDebugNext I get error stating that:

current goroutine not found... vim-go: dictionary required

  • 写回答

2条回答 默认 最新

  • duanfei8149 2019-09-24 16:43
    关注

    I am reading here Request: option to suppress delve debugging logs

    They are not errors, they're just the diagnostics that delve sends on stderr , hence ERR. You're free to ignore them.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?