From 98b34a0b2b7224c177fddae562e6db3aab4105f2 Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Wed, 27 Sep 2023 11:59:05 -0700 Subject: [PATCH] Settings to enable android native code debugging in vscode These should be copied to `platforms/android` and then if you open the `build.gradle`, you should be able to connect to a running process and set breakpoints etc --- setup/.vscode/launch.json | 24 ++++++++++++++++++++++++ setup/.vscode/settings.json | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 setup/.vscode/launch.json create mode 100644 setup/.vscode/settings.json diff --git a/setup/.vscode/launch.json b/setup/.vscode/launch.json new file mode 100644 index 000000000..8e57df3a0 --- /dev/null +++ b/setup/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "android", + "request": "launch", + "name": "Android launch", + "appSrcRoot": "${workspaceRoot}/app/src/main", + "apkFile": "${workspaceRoot}/app/build/outputs/apk/debug/app-debug.apk", + "adbPort": 5037 + }, + { + "type": "android", + "request": "attach", + "name": "Android attach", + "appSrcRoot": "${workspaceRoot}/app/src/main", + "adbPort": 5037, + "processId": "${command:PickAndroidProcess}" + } + ] +} diff --git a/setup/.vscode/settings.json b/setup/.vscode/settings.json new file mode 100644 index 000000000..c5f3f6b9c --- /dev/null +++ b/setup/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file