MacOS系統(tǒng)使用Goland等ide debug出現(xiàn)debugserver or lldb-server not found: install XCode’s command line tools or lldb-server
前言
筆者筆記本環(huán)境為MacOS,使用「Goland」IDE,無法對代碼進行debug調(diào)試,報出錯誤:could not launch process: debugserver or lldb-server not found: install XCode's command line tools or lldb-server
方法
1.可以先打開「終端」輸入:xcode-select --install
,等待安裝完成,就可以解決問題啦
2.如果上述方法不能自動下載且報錯(筆者就是安裝失敗,提示已經(jīng)存在或者其他什么原因,可是我明明沒有安裝?。。。?,可以自行去 https://developer.apple.com/download/more/ 手動下載安裝。
左邊輸入command line tools,選擇對應(yīng)你Xcode版本的。

我的Xcode是12.0.1,所以我選擇command line tools for Xcode12。下載后安裝,之后就可以正常debug啦!
到此這篇關(guān)于MacOS系統(tǒng)使用Goland等ide debug失敗的文章就介紹到這了,更多相關(guān)Goland ide debug失敗內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!