-
Install plugin
CodeLLDBby Vadim Chugunov for VS Code. -
Install plugin
Tasks Shell Inputby Augusto, with this plugin we can use commandline for input in launch.json. -
(Optional) set
PYTHONPATHin.envso that you canimport lldbwhen writting python scripts. -
Specify how your lldb should connect to remote-android before attaching to target process in
.vscode/launch.json:{ "configurations": [ { // ... "initCommands": [ "platform select remote-android", "platform connect connect://<Device ID>:6666", // You can use `adb devices` to acquire device id // "platform connect connect://localhost:6666", // you need to run `adb forward tcp:6666 tcp:6666` // "platform connect unix-abstract-connect:///data/local/tmp/debug.sock", ] } ] // ... } -
Start target on your Android device, and start debugging with VS Code. You can now attach to the
pid, which is obtained via automatically run commandline. -
adb pushcorrespondinglldb-serverfrom NDK to Android device. -
Start
lldb-serverin adb shellchmod a+x ./lldb-server ./lldb-server p --server --listen unix-abstract:///data/local/tmp/debug.sock -
Launch CodeLLDB session
xxr0ss/vscode_lldb_remote_android
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|