Introduction to the

LLDB is an open source debugging tool built into XCode, which brings great convenience to our daily development and debugging. At the same time, it also has great help for us to reverse analyze others’ APPS. Use the LLDB as an example

In this article I will list out the commonly used instructions for easy reference in the future

Breakpoint operation

$b set -n “- $b set -n “- $b set -r “$b set -n “- $b set -r” $b set -n “- $b set -r” View breakpoint list $b list $breakpoint disabled $breakpoint enable $continue c $n next $s $help [CMD] [memory access breakpoint] $watchpoint set variable P1 ->name $watchpoint set expression 0x312315(A Memory Address) Note: After the break, you can view the stack information through BT to know where the memory was modified

Memory operations

$expression self.view.subViews $p self.view.subViews $p self.view.backgroudColor = [UIColor redColor]; Note: P is short for expression, $target stop-hook list $target stop-hook list $target stop-hook list $target stop-hook list [breadpoint,watchpoint $target stop-hook add -o “frame variable” $target stop-hook delete $image lookup -a 0x102110226 Lookup -t Person $image list $memory read 0x

Stack operation

$up // $down // $frame select index // $frame variable The $thread return code is rolled back to the previous layer and exits