我正在从dlv中得到这个错误
could not attach to pid 20727: decoding dwarf section info at offset 0x0: too short二进制文件是这样构建的:
go build -a -v -ldflags "-w -X main.gitCommit=<sha> -linkmode 'auto' -extldflags '-static'"您能确认是-w标志导致了以下问题吗?它会剥离调试符号吗?
发布于 2019-01-25 02:03:47
删除-w标志后,delve就可以附加到进程上了
https://stackoverflow.com/questions/54338111
复制相似问题