Title: Theory / Important / CS / Development / Debugger / LLDB
On every note of this deck, unless a note says otherwise:
Page: https://lldb.llvm.org/use/tutorial.html

Question: The form of argument
Answer: <noun> <verb> [-options [option-value]] [argument [argument...]]
Page: https://lldb.llvm.org/use/tutorial.html
Context: LLDB

Fla: --
Effect: All text after that are arguments and not options, even if they start with -
Page: https://lldb.llvm.org/use/tutorial.html
Context: LLDB

Instruction: breakpoint set foo_1 ...  foo_n
Effect: Add breakpoints at points described by foo_1, ... and foo_n
Context: LLDB

Fla: --name foo
Effect: add breakpoint at function called foo
Page: https://lldb.llvm.org/use/tutorial.html
Prefix: breakpoint set
Flag abbreviation: -n foo
Context: LLDB

Fla: --file foo --line n
Effect: add breakpoint at line n of file foo
Page: https://lldb.llvm.org/use/tutorial.html
Prefix: breakpoint set
Flag abbreviation: -f foo -l n
Context: LLDB

Fla: --method foo
Effect: add breakpoint at method foo
Page: https://lldb.llvm.org/use/tutorial.html
Prefix: breakpoint set
Flag abbreviation: -M foo
Context: LLDB

Fla: --selector foo
Effect: add breakpoint at objective-C selector foo
Page: https://lldb.llvm.org/use/tutorial.html
Prefix: breakpoint set
Flag abbreviation: -S foo
Context: LLDB

Fla: --shliib foo
Effect: limit breakpoint to executable image foo
Page: https://lldb.llvm.org/use/tutorial.html
Prefix: breakpoint set
Flag abbreviation: -s foo
Context: LLDB

Instruction: command alias foo bar
Page: https://lldb.llvm.org/use/tutorial.html
Meaning: function executing bar, with arguments %1 %2 ...
Context: LLDB
Identifier: foo

Variable: ~/.lldbinit
Meaning: lldb command executed at start-up
Page: https://lldb.llvm.org/use/tutorial.html
Context: LLDB

Instruction: command unalias b
Effect: delete the alias b
Context: LLDB

Name: A raw command
Definition: A command that pass all arguments of the command string to the command instead of parsing it with -flags and mandatory arguments
Page: https://lldb.llvm.org/use/tutorial.html
Context: LLDB

Instruction: script
Effect: start underlying python interpreter
Context: LLDB

Instruction: file foo
Effect: run programm foo in lldb
Context: LLDB

Instruction: lldb foo
Effect: run programm foo in lldb
Language: sh

Instruction: breakpoint lists
Language: lldb
Returns: all set breakpoints

Name: A breakpoint option
Definition: What to do when breakpoint is reached
Page: https://lldb.llvm.org/use/tutorial.html

Instruction: process launch
Effect: Start running the program
Language: lldb
Abbreviation: run r

Instruction: process --pid n
Effect: Attach the process with pid n to LLDB
Language: lldb

Instruction: process --name foo
Effect: Attach the process with name foo to LLDB
Language: LLDB

Instruction: process --name foo --waitfor
Effect: Attach the process with name foo to LLDB. If it does not exists, wait for it
Language: LLDB

Instruction: thread continue
Effect: resume all halted threads
Language: LLDB
Abbreviation: c

Instruction: thread step-in
Language: LLDB
Abbreviation: step s

Instruction: thread step-over
Language: LLDB
Abbreviation: next n

Instruction: thread step-out
Language: LLDB
Abbreviation: finish f

Instruction: thread step-inst
Language: LLDB
Abbreviation: step si

Instruction: thread step-over-inst
Language: LLDB
Abbreviation: nexti ni

Instruction: thread until n
Effect: Run the thread until it reaches line 100 in this frame or stops if it leaves the current frame
Language: LLDB

Instruction: thread list
Language: LLDB
Returns: the list of threads

Instruction: thread backtrace
Language: LLDB
Returns: the list of frames of current thread

Instruction: thread backtrace n
Language: LLDB
Returns: the list of frames of thread n

Instruction: thread backtrace all
Language: LLDB
Returns: the list of frames of all threads

Instruction: thread select n
Language: LLDB
Returns: Select thread n

Instruction: frame variable
Language: LLDB
Returns: print all variables of current frames, with their name, type and value

Instruction: frame variable expr
Language: LLDB
Returns: print the value associated to expr in current frame
Assuming: expr contains current varialbe, &, *, -> and []