Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Debugging the debugger

Nat! edited this page Oct 7, 2019 · 13 revisions

Build mulle-lldb debug

install-mulle-clang --with-lldb --debug 

Build mulle-lldb standalone debug

Assuming you have built llvm with mulle-clang using install-mulle-clang. Modify PATH to find llvm-config:

PATH="${PWD}/bin:$PATH" ( 
   mkdir build/lldb.d 
   cd build/lldb.d 
   cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../../src/mulle-lldb 
   ninja 
)

Run mulle-lldb in gdb

Terminal 1:

mulle-lldb <executable>

Terminal 2:

Use another lldb to debug (or gdb):

sudo lldb -p `ps -ax | egrep mulle-lldb | grep -v grep | awk '{ print $1 }'`

Tracing

In lldb this will enable mulle-objc specific traces (-v for verbose logging):

log enable -v lldb language

This will enable traces related to evaluating expressions like po self:

log enable lldb expr
Clone this wiki locally