Attach LLDB to Debug Swift

已完成

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.

0

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?

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

Okay I figured it out, click the arrow on the right of the process in the attach profile.

0

请先登录再写评论。