关于MacOS系统使用Goland等ide debug失败的问题

软件发布|下载排行|最新软件

当前位置:首页操作系统Mac OS

关于MacOS系统使用Goland等ide debug失败的问题

  2020-12-11 我要评论

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啦!

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们