GithubHelp home page GithubHelp logo

gmh5225 / vscode_lldb_remote_android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xxr0ss/vscode_lldb_remote_android

0.0 0.0 0.0 5 KB

VS Code configuration to use LLDB for remote (Android) debugging

Python 100.00%

vscode_lldb_remote_android's Introduction

Usage

  • Install plugin CodeLLDB by Vadim Chugunov for VS Code.

  • Install plugin Tasks Shell Input by Augusto, with this plugin we can use commandline for input in launch.json.

  • (Optional) set PYTHONPATH in .env so that you can import lldb when 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 push corresponding lldb-server from NDK to Android device.

  • Start lldb-server in adb shell

    chmod a+x ./lldb-server
    ./lldb-server p --server --listen unix-abstract:///data/local/tmp/debug.sock
    
  • Launch CodeLLDB session

vscode_lldb_remote_android's People

Contributors

xxr0ss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.