MacOS goland go1.21 debug问题

安装dlv

brew install dlv

安装之后在终端会显示所在目录

类似/usr/local/Cellar/delve/1.21.0/bin

配置goland

在文件系统中找到goland

右击选择show package contents -> Contents -> plugins -> go

尝试替换 其中对应系统 的 dlv

结果还是不行

然后打开应用goland

Help → Edit Custom Properties

增加以下代码:

dlv.path=/usr/local/Cellar/delve/1.21.0/bin(dlv的实际安装目录,跟着brew安装过程中显示的来)

Help → Edit Custom VM Options

-Ddlv.path=/usr/local/Cellar/delve/1.21.0/bin(dlv的实际安装目录,跟着brew安装过程中显示的来)

最终成功!!!

秀一下结果图

相关推荐
未来魔导1 天前
go语言中json操作总结(下)
数据分析·go·json
未来魔导1 天前
Go-qdrant-API开启客服系统新模式
go·api·qdrant
denggun123451 天前
卡顿监测原理
macos·ios·xcode
Sheffi662 天前
iOS 触摸事件完整传递链路:Hit-Test 全流程深度解析
macos·ios·cocoa
喵个咪2 天前
开箱即用的 GoWind Admin|风行,企业级前后端一体中后台框架:Makefile 在后端开发中的应用与 Windows 环境配置
后端·go
春日见2 天前
ubuntu以前可以联网,突然无法上网了
linux·服务器·ubuntu·debug
ChineHe2 天前
Gin框架入门篇002_第一个Gin服务
macos·xcode·gin
Roc.Chang2 天前
解决 macOS 26.1 The application “xxxx” can’t be opened. 问题
macos
赶路人儿2 天前
从intel mac迁移到M3后软件的兼容性
macos
颜淡慕潇2 天前
Podman 从0到1使用教程(macOS 系统):安装 MySQL、Redis 容器
mysql·macos·podman