to be
a problem slover

mac下goland debug报错debugserver找不到解决办法

Table of Contents

问题

goland debug 的时候报错:

could not launch process: debugserver or lldb-server not found: install XCode's command line tools or lldb-server

解决办法

使用 which debugserver 或者 lldb-server 确实搜不到命令。

一开始我以为是 xcode 的问题。

网上有人说运行 xcode-select --install 命令。

少数人有用,我运行没用,运行报错:

最终是 github 上面这个 issue的解答帮助了我解决问题

执行下面命令即可

sudo mkdir -p /Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/
sudo ln -s "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/debugserver" /Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver

我看了下/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources这个目录下是有debugserver命令的,我把路径加到 PATH 中,还是没用。

运行上面的命令就好,不知道为什么。

参考资料

lldb-server needs to be installed in \$PATH

赞(10) 打赏
欢迎转载,注明出处:刘世明的博客 » mac下goland debug报错debugserver找不到解决办法

评论 3

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.info/register-person?ref=QCGZMHR6

    Εγγραφ3个月前 (03-24)回复
  2. #2

    Niice post. I wass checking contihuously his wewblog andd I amm
    impressed! Very userful infcormation particularly thhe last art 🙂 I czre for
    suc info much. I used tto bee lookkng ffor thijs cetain info foor a ver lengthy time.
    Thannk yoou aand bwst off luck.

    Here is myy blog posst freepornmovies.biz

  3. #3

    Dooes yoir blog hav a cntact page? I’m havinhg trpuble locatikng itt but, I’d likke tto sewnd
    you ann email. I’ve got sokme ideas foor your bpog you might bee intereste
    iin hearing. Either way, greqt website aand I look forward tto seeinng iit grtow oveer time.

    Alsso visitt mmy webpae … desixxx.biz

    desixxx.biz2周前 (05-29)回复

觉得文章有用就打赏一下作者

支付宝扫一扫打赏

微信扫一扫打赏