Get error: "failed to get reply to handshake packet" when running app in lldb

Hi @Adrian_Prantl , sorry to bother you, I built the lldb using tag swift-5.6.1-RELEASE, but when I launch lldb I built, and using process launch to run the app, I get the error says "failed to get reply to handshake packet". If I use the system lldb, every thing is OK, could you please help me to solve this problem, Thanks.

My computer is M1 Max, and using Xcode 13.2.

Can you launch lldb with -O log enable gdb-remote packets? Then we can see what the communication looks like.

Appreciate your reply, and I enabled the log, and got this output:

(lldb) file /Users/rayxia/Library/Developer/Xcode/DerivedData/Noto-atxyvfvvbgknvneknpmititotyln/Build/Products/Debug/
Current executable set to '/Users/rayxia/Library/Developer/Xcode/DerivedData/Noto-atxyvfvvbgknvneknpmititotyln/Build/Products/Debug/' (arm64).
(lldb) r
 <   1> send packet: +
 history[1] tid=0x0103 <   1> send packet: +
 <  19> send packet: $QStartNoAckMode#b0
error: failed to get reply to handshake packet

Almost looks like the debug server doesn't even get launched. Can you confirm whether it gets spawned?

There is no debug server, but I confirm that there is no debug server when I use system lldb.
And I also tried to use Xcode to debug the APP, there is no lldb process, but lldb-rpc-server.

By the way, the APP I debug is a mac APP.