LLDB: Send SIGTRAP (5)
1 min readJun 20, 2019
So you are trying to use LLDB from terminal? Nice!
Usually, in an IDE like Xcode, we are spoiled with a lot of buttons that help us perform debugging faster. You may have ever use Pause button and perform Visual Debugging in Xcode.
And that operation is simply called Trap. It will send signal so system can trap any process, your process.
How do you do it in LLDB when you launch it in terminal?
Simple, at the start of the process you will get output like Process 89898 resuming
. That number is your process ID. What you need to do is open new terminal, type kill -5 89898
and back to your lldb terminal process. You will get it stopped using SIGTRAP.