Search code examples
gdbcommand-line-argumentslldb

What is the lldb equivalent of gdb's --args?


I'm used to running gdb like so:

$ gdb --args exe --lots --of --flags -a -b -c d e
...
(gdb) r

Is there an equivalent for lldb?


Solution

  • Yes, it's just -- instead of --args. From the help:

    lldb -v [[--] <PROGRAM-ARG-1> [<PROGRAM_ARG-2> ...]]
    

    Thus:

    $ lldb -- exe --lots --of --flags -a -b -c d e