Debugging native programs using LLDV on Android 11

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 .\lldb.exe View Supported Platforms platform list Select ANDROID Platform 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 platform process list Attach attach 9053 Set Breakpoint b send Run c View Thread List thread list View Call Stack bt

September 28, 2024 · 1 min · xgDebug

Debugging native applications with LLDV on Android 11

Mobile PUSH debug server to mobile adb push lldb-server /data/local/tmp chmod 755 /data/local/tmp/lldb-server Start the debugger service /data/local/tmp/lldb-server platform --listen "*:8888" --server +++ Computer side Port forwarding adb forward tcp:8888 tcp:8888 Start LLDB . \lldb.exe View supported platforms platform list Select ANDROID platform platform select remote-android Connect to the phone Phone serial number: 9643e0ec0604 To change to the current debugging phone, use adb devices to check the serial number platform connect connect://9643e0ec0604:8888 View the currently running process platform process list Attach to attach 9053 Breakpoint b send Run up c View the list of threads thread list View the call stack bt

August 11, 2023 · 1 min · xgDebug