goland22.02调试异常解决

问题概述

GOROOT=/Users/mvpbang/.g/go #gosetup
GOPATH=/Users/mvpbang/go #gosetup
/Users/mvpbang/.g/go/bin/go build -o /private/var/folders/rr/rgbwqqyn077fxsdfk_y3dq4c0000gn/T/GoLand/___1go_build_go_dev -gcflags all=-N -l /Users/mvpbang/dev-workspace/go-dev/yanan.go #gosetup
/Applications/GoLand.app/Contents/plugins/go-plugin/lib/dlv/mac/dlv --listen=127.0.0.1:58120 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /private/var/folders/rr/rgbwqqyn077fxsdfk_y3dq4c0000gn/T/GoLand/___1go_build_go_dev --
API server listening at: 127.0.0.1:58120
debugserver-@(#)PROGRAM:LLDB  PROJECT:lldb-1200.0.32
 for x86_64.
Got a connection, launched process /private/var/folders/rr/rgbwqqyn077fxsdfk_y3dq4c0000gn/T/GoLand/___1go_build_go_dev (pid = 29096).
unexpected fault address 0x10e4100

goland不能debug

env

image

image

问题分析

怀疑,CommandLineTools版本和当前系统版本不匹配,之前的操作系统都没这个问题

问题解决

1、卸载

mvpbang@mvpbang Developer % xcode-select -p
/Library/Developer/CommandLineTools

sudo mv /Library/Developer/CommandLineTools /tmp

2、重新安装

xcode-select --install

3、关闭调试提示认证

sudo /usr/sbin/DevToolsSecurity -enable

posted @ 2023-11-16 16:10  mvpbang  阅读(115)  评论(0编辑  收藏  举报