Attach LLDB to Debug Swift
Completed
Is there a way to attach the LLDB debugger ala Swift mode besides running a swift project in debug?
I had a shared swift library that is being called by an external process. I'd like to hook the CLion, freshly released, Swift debug mode in it, but it only attached with GDB. Attaching with LLDB for Swift projects would be nice.
Please sign in to leave a comment.
Hi Joseph!
>but it only attached with GDB
Do you mean the Attach to process functionality? For C/C++ applications, you can attach to a process with GDB on Windows, LLDB on macOS, and both GDB and LLDB on Linux. You are on macOS, aren't you?
Yes I am using Linux. I'm unsure how to attach LLDB to a python process which uses a shared Swift library. It seems to only allow GDB.
Okay I figured it out, click the arrow on the right of the process in the attach profile.