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

最终成功!!!

秀一下结果图

相关推荐
缘友一世5 小时前
macos安装mongodb
数据库·mongodb·macos
zaim15 小时前
计算机的错误计算(一百一十四)
java·c++·python·rust·go·c·多项式
笑非不退13 小时前
macOS开发环境配置与应用开发
macos
colorknight19 小时前
1.2.3 HuggingFists安装说明-MacOS安装
人工智能·低代码·macos·huggingface·数据科学·ai agent
百里守约学编程20 小时前
70. 爬楼梯
算法·leetcode·go
GEEKVIP1 天前
如何修复变砖的手机并恢复丢失的数据
macos·ios·智能手机·word·手机·笔记本电脑·iphone
Gogeof1 天前
云原生化 - 工具镜像(简约版)
微服务·云原生·debug·工具
kuai-1 天前
MacOS配置python环境
开发语言·python·macos
一丝晨光1 天前
继承、Lambda、Objective-C和Swift
开发语言·macos·ios·objective-c·swift·继承·lambda
心存留恋就不会幸福1 天前
Mac屏蔽系统更新,取出红点标记&&如果解锁hosts文件
macos