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

最终成功!!!

秀一下结果图

相关推荐
CZIDC4 小时前
MacOS字体看起来比在 Windows 上更好?
macos
Cosmoshhhyyy11 小时前
linux远程部署dify和mac本地部署dify
linux·运维·macos
行星00811 小时前
mac 通过homebrew 安装和使用nvm
macos·npm·node.js
2501_9280946519 小时前
Mac电脑录屏工具 Omi录屏专家(Mac中文)
macos·mac·录屏工具·omi
郭京京20 小时前
go语言sync.Map和atomic包
go
森之鸟1 天前
Mac chrome浏览器下载DevEco Studio 6.0.0 Beta2失败
前端·chrome·macos
懒得更新1 天前
Go语言微服务架构实战:从零构建云原生电商系统
后端·go
程序员爱钓鱼1 天前
Go语言实战案例:执行基本的增删改查
后端·google·go
程序员爱钓鱼1 天前
Go语言实战案例:连接MySQL数据库
后端·google·go