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

最终成功!!!

秀一下结果图

相关推荐
开开心心loky3 小时前
[iOS] GCD - 线程与队列
macos·ios·objective-c·cocoa
冷冷的菜哥6 小时前
21款m1 max升级到macOS 14——Sonoma
macos·苹果·sonoma·macos系统升级
laocaibulao6 小时前
mac电脑composer命令如何指定PHP版本
macos·php·composer
00后程序员张6 小时前
iOS 上架费用全解析 开发者账号、App 审核、工具使用与开心上架(Appuploader)免 Mac 成本优化指南
android·macos·ios·小程序·uni-app·cocoa·iphone
遥天棋子8 小时前
实战PaddleOCR自动识别车位坐标并渲染可点击按钮
go
久违 °8 小时前
【安全开发】Nuclei源码分析-任务执行流程(三)
安全·网络安全·go
fukai772210 小时前
OmniFocus:专为 macOS 与 iOS 打造的专业级任务管理利器
macos·ios
喵个咪11 小时前
开箱即用的GO后台管理系统 Kratos Admin - 数据脱敏和隐私保护
后端·go·protobuf
shining12 小时前
[Golang] 万字长文,一文入门go语言!
go
百锦再13 小时前
第8章 模块系统
android·java·开发语言·python·ai·rust·go