安裝dlv
brew install dlv
安裝之后在終端會(huì)顯示所在目錄
類似/usr/local/Cellar/delve/1.21.0/bin
配置goland
在文件系統(tǒng)中找到goland
右擊選擇show package contents -> Contents -> plugins -> go
嘗試替換 其中對(duì)應(yīng)系統(tǒng) 的 dlv
結(jié)果還是不行
然后打開應(yīng)用goland
Help → Edit Custom Properties
增加以下代碼:
dlv.path=/usr/local/Cellar/delve/1.21.0/bin(dlv的實(shí)際安裝目錄,跟著brew安裝過(guò)程中顯示的來(lái))
Help → Edit Custom VM Options
-Ddlv.path=/usr/local/Cellar/delve/1.21.0/bin(dlv的實(shí)際安裝目錄,跟著brew安裝過(guò)程中顯示的來(lái))
最終成功?。?!文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-681403.html
秀一下結(jié)果圖
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-681403.html
到了這里,關(guān)于MacOS goland go1.21 debug問(wèn)題的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!