Mobile Side#
PUSH Debug Server to Phone#
adb push lldb-server /data/local/tmp
chmod 755 /data/local/tmp/lldb-server
Launch Debugger Service#
/data/local/tmp/lldb-server platform --listen "*:8888" --server
PC Side#
Port Forwarding#
adb forward tcp:8888 tcp:8888
Launch LLDB#
platform select remote-android
Connect to Phone (Phone Serial Number: 9643e0ec0604). To change to the currently debugging phone, use adb devices to view the serial number.#
platform connect connect://9643e0ec0604:8888
View Currently Running Processes#
Attach#
Set Breakpoint#
Run#
View Thread List#
View Call Stack#