增加一些debug相关的task

This commit is contained in:
zhl 2023-05-15 14:06:11 +08:00
parent 60d1e913c5
commit 75303bcf61

26
.vscode/tasks.json vendored
View File

@ -66,6 +66,32 @@
"presentation": {
"reveal": "always"
}
},
{
"label": "RunDebugApp",
"type": "shell",
"command": "adb shell am start com.cege.games.release/.MainActivity",
"windows": {
"command": "adb shell am start com.cege.games.release/.MainActivity "
},
"group": "test",
"presentation": {
"reveal": "always"
},
},
{
"label": "ShowDebugLogcat",
"type": "shell",
"command": "adb logcat --pid=`adb shell ps | grep com.cege.games.release | awk '{print $2}'`",
"group": "test",
"presentation": {
"reveal": "always"
},
},
{
"label": "Build&Run",
"dependsOrder": "sequence",
"dependsOn": ["BuildDebugApp", "InstallDebugApp", "RunDebugApp", "ShowDebugLogcat"]
}
]
}