douruobokui58233 2016-06-10 05:48 采纳率: 0%
浏览 122
已采纳

无法启动进程:字节0x0处的记录中无效的幻数Delve Golang

Just got a:

could not launch process: invalid magic number in record at byte 0x0

When running on OSX after working fine for a while:

dlv debug main.go

reinstalled Delve, but still persists. What can it be?

  • 写回答

1条回答 默认 最新

  • duandi6531 2016-06-16 17:22
    关注

    The problem was the name of the package, I changed it and worked. Delve should give a better error message for that case.

    Previously I had a custom name for the package name. After changing it to main delve started to work again.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?