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

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