Stream: contributing

Topic: lldb / debugging suggestions


view this post on Zulip Patrick Kilgore (Jun 23 2022 at 14:22):

This is the first time I've reached for LLDB on my apple silicon, it seems to be resisting my efforts to run roc with breakpoints set. I either see this error with r : error: shell expansion failed (reason: could not get support executable directory for lldb-argdumper tool). consider launching with 'process launch'. or this with process launch: error: unable to locate debugserver.

The point here really isn't to figure out what's wrong with my env, although I'd appreciate any suggestions.. Rather, what do you use to breakpoint / debug when contributing? dbg!? gdb? Or does lldb work for you.

view this post on Zulip Brendan Hansknecht (Jun 23 2022 at 14:34):

I personally tend to switch to Linux and gdb (tui mode) and objdump when doing complex debugging (though I also tend to deal with more low level roc stuff, generating raw assembly and surgical linking)

view this post on Zulip Brendan Hansknecht (Jun 23 2022 at 14:35):

Though dbg! is often enough for many simple cases.


Last updated: Jul 06 2025 at 12:14 UTC