Debugging to a file: log enable -STanpstv -f /tmp/log.txt lldb all Debugging GDB remote protocol commands: log enable gdb-remote packets https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html Debugging with gdb(1): Start the server: gdb --args lldb-server g *:1234 -- ./signal gdb --args lldb-server g *:1234 -- /usr/bin/look Start the client: lldb Inside it: process connect connect://localhost:1234