diff options
| author | Jonatan Rhodin <jonatan.rhodin@mullvad.net> | 2025-01-08 11:03:36 +0100 |
|---|---|---|
| committer | Jonatan Rhodin <jonatan.rhodin@mullvad.net> | 2025-01-08 11:03:36 +0100 |
| commit | a4bd7cc7758e8b64fd4cae4ed9070db5f51722dd (patch) | |
| tree | ae94294f9540cd5bdf476e1fe6a7bfaeb808810c /android/docs/DebugInstructions.md | |
| parent | ac9ac4b824b62d60f64be46f69a4678152d64fb5 (diff) | |
| parent | a07dc5c5699392051f9e34d4883ba0d2808ea496 (diff) | |
| download | mullvadvpn-a4bd7cc7758e8b64fd4cae4ed9070db5f51722dd.tar.xz mullvadvpn-a4bd7cc7758e8b64fd4cae4ed9070db5f51722dd.zip | |
Merge branch 'implement-gradle-rust-plugin-droid-1377'
Diffstat (limited to 'android/docs/DebugInstructions.md')
| -rw-r--r-- | android/docs/DebugInstructions.md | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/android/docs/DebugInstructions.md b/android/docs/DebugInstructions.md index e4c9100e0e..9faa5237b2 100644 --- a/android/docs/DebugInstructions.md +++ b/android/docs/DebugInstructions.md @@ -1,15 +1,13 @@ ## Debugging the native libraries in Android Studio with LLDB -1. Make sure the native libraries have been built with debug symbols. If using the `build-apk.sh` - script, run `SKIP_STRIPPING=yes ../build-apk.sh --dev-build`. -2. In Android Studio, go to `Run -> Edit configurations...` -3. Make sure the `app` configuration is selected. -4. In the `Debugger` tab, select `Dual (Java + Native)` -5. Start debugging the app as usual from Android Studio. The app should now stop on a SIGURG signal. -6. Select the `LLDB` tab in the debugger. Now you can set breakpoints etc, e.g. +1. In Android Studio, go to `Run -> Edit configurations...` +2. Make sure the `app` configuration is selected. +3. In the `Debugger` tab, select `Dual (Java + Native)` +4. Start debugging the app as usual from Android Studio. The app should now stop on a SIGURG signal. +5. Select the `LLDB` tab in the debugger. Now you can set breakpoints etc, e.g. `breakpoint set -n open_tun` -7. Before continuing run `pro hand -p true -s false SIGURG` -8. Click `Resume Program` and the app will resume until the breakpoint is hit. +6. Before continuing run `pro hand -p true -s false SIGURG` +7. Click `Resume Program` and the app will resume until the breakpoint is hit. NOTE: When running LLDB, Android Studio can sometimes get into a state where it will try to connect to the debugger when running the app normally, which blocks the app from starting. |
