创建Debug Configutations
点击Edit Configurations

image.png
点击Remote

image.png
修改一下名称 然后点击ok

image.png
等待Debug
然后我们的任务就创建好啦 接下来在terminal跑一下下面的命令
./gradlew assembleDebug -Dorg.gradle.daemon=false -Dorg.gradle.debug=true
attach
然后在我们需要断点的地方打上断点
点击Debug按钮

image.png
然后就可以开心的调试啦👏

image.png