macOS 10.12.1 Idea调试Go程序遇到could not launch process: could not get thread count
来源:互联网 发布:哪本书 java 算法程序 编辑:程序博客网 时间:2024/06/10 07:02
我的Idea版本是2016.3,在macOS 10.12.1调试Go程序会发现报错:
could not launch process: could not get thread count
解决方案如下:
- 进入你的 $
GOPATH 目录
- 建立文件夹:
$GOPATH/src/github.com/derekparker/
依次执行如下命令:
- cd $GOPATH/src/github.com/derekparker/
git clone https://github.com/derekparker/delve.git
cd delve
git fetch origin pull/665/head
git checkout FETCH_HEAD
CERT=dlv-cert make install
针对IDEA 2016.3版本,再执行如下命令,其它版本号请自行替换:
$ mv ~/Library/Application\ Support/IntelliJIdea2016.3/Go/lib/dlv/mac/dlv ~/Library/Application\ Support/IntelliJIdea2016.3/Go/lib/dlv/mac/dlv.orig$ ln -s $GOPATH/bin/dlv ~/Library/Application\ Support/IntelliJIdea2016.3/Go/lib/dlv/mac/dlv
再尝试使用IDEA调试GO程序,成功!
0 0
- macOS 10.12.1 Idea调试Go程序遇到could not launch process: could not get thread count
- could not launch "" process launch failed:Security
- 真机调试出现Could not launch "FeedMeWorms" failed to get the task for process 3118
- Could not launch “***”process launch failed: failed to get the task for process 402
- 解决Xcode7真机调试 Could not launch "My App" process launch failed: Security
- XCode7真机调试时出现 Could not launch process launch failed: Security
- Xcode7 无证书真机调试 "Could not launch 'test' process launch failed: Security" 解决办法
- could not launch process: Could not determine version number: could not find symbol value for runtim
- Could not launch “XXXX” process launch failed: Security
- Could not launch “ ”,process launch failed: Security解决
- 真机调试,Could not launch
- 真机测试不能启动 --could not launch “xxx” process launch failed:failed to get the task for process 3306
- Could not launch “XXXX”
- 【xcode】错误之Could not launch "" failed to get the task for process
- Could not launch xxx failed to get the task for process xxx
- XCode Could not launch "" failed to get the task for process
- XCode Could not launch "" failed to get the task for process
- 41.【xcode】错误之Could not launch "" failed to get the task for process
- 临时禁用Resharper
- 纯CSS3实现的鼠标悬停时边框旋转
- Android自定义一个广播接收器BroadcastReceiver监听本地消息
- android-传感器
- 位操作的一些常用宏定义
- macOS 10.12.1 Idea调试Go程序遇到could not launch process: could not get thread count
- @Resource 的出现某个类获取冲突的问题
- 1.1 springboot cli 安装
- 写在2017年初元月三号
- scrapy引用包出错ImportError : cannot import name '_win32stdio'
- Matlab-矩阵的索引
- hdu 1892 A Bug's Life
- App组件化与业务拆分那些事
- 第三节 核心技术