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安装过程中显示的来)

最终成功!!!

秀一下结果图

相关推荐
pe7er14 小时前
macOS 应用无法打开(权限问题)解决方案
macos·mac
Bigger1 天前
告别版本焦虑:如何为 Hugo 项目定制专属构建环境
前端·架构·go
刀法如飞2 天前
一款Go语言Gin框架MVC脚手架,满足大部分场景
go·mvc·gin
Coding君2 天前
每日一Go-26、Go语言进阶:深入并发模式2
go
MrBread2 天前
微任务链式派生阻塞渲染
前端·debug
怕浪猫2 天前
第19章:Go语言工具链与工程实践
后端·go·编程语言
tyung3 天前
Go 为什么没成为游戏服务器主流语言
go
F1FJJ3 天前
基于网络隐身的内网穿透
网络协议·网络安全·go
harmful_sheep3 天前
mac生效的终端查看
macos