Mac OS更新sonoma goland无法debug问题unexpected fault address 0x121b000

GO-232.9921.53, JRE 17.0.8+7-b1000.22x64 JetBrains s.r.o., OS Mac OS X(x86_64) v14.0, screens 1920.0x1080.0

GOROOT=/usr/local/go #gosetup

GOPATH=/Users/svontel/go #gosetup

/usr/local/go/bin/go build -o /Users/svontel/Library/Caches/JetBrains/GoLand2023.2/tmp/GoLand/___go_build_main_go -gcflags all=-N -l /Users/svontel/go/src/data-cleanup-rules/main.go #gosetup

/Applications/GoLand.app/Contents/plugins/go-plugin/lib/dlv/mac/dlv --listen=127.0.0.1:58075 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /Users/svontel/Library/Caches/JetBrains/GoLand2023.2/tmp/GoLand/___go_build_main_go --

API server listening at: 127.0.0.1:58075

debugserver-@(#)PROGRAM:LLDB PROJECT:lldb-1205.0.28

for x86_64.

Got a connection, launched process /Users/svontel/Library/Caches/JetBrains/GoLand2023.2/tmp/GoLand/___go_build_main_go (pid = 98442).

unexpected fault address 0x1f9eda0

Mac OS更新sonoma goland无法debug问题unexpected fault address 0x121b000_第1张图片

解决方案:

  1. rm -rf /Library/Developer/CommandLineTools
  2. xcode-select --install

参考:https://youtrack.jetbrains.com/issue/GO-15541/Debugger-not-working-unexpected-fault-address-0x1f9eda0

你可能感兴趣的:(golang)