I have a Swift process that is launched by another process on Linux. I am attempting to debug the Swift process with LLDB. I'm using
process attach --name "<name>" --waitfor but everytime I do it immediately returns
error: attach failed: lost connection.
I've been searching to find an answer to no avail.
LLDB is improving on Linux. While the debugserver has not been ported (to enable remote debugging) Linux is nearing feature completeness with Darwin to debug x86_64 programs, and is partially working with i386 programs. ARM architectures on Linux are untested. For more details, see the Features by OS section below.
Is anyone aware if the
--waitfor is part of the features that are as yet not supported on Linux? I know this capability works on macOS.