1 建立远程调试任务
![img_18b44649c0f42bb0e3a551a7f811c70e.png](https://yqfile.alicdn.com/img_18b44649c0f42bb0e3a551a7f811c70e.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
![img_400413ef71ef7f6d56498b644c7c24a5.png](https://yqfile.alicdn.com/img_400413ef71ef7f6d56498b644c7c24a5.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
![img_291def13c7c5a825de8e44a71418f4ba.png](https://yqfile.alicdn.com/img_291def13c7c5a825de8e44a71418f4ba.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
2 在项目中的terminal命令行中
gradle assembleDebug -Dorg.gradle.daemon=false -Dorg.gradle.debug=true
assembleDebug 可以为其他的构建命令,但参数-Dorg.gradle.daemon=false -Dorg.gradle.debug=true
要有。
![img_636fbb2fc2d47aecd849cc48102179cd.png](https://yqfile.alicdn.com/img_636fbb2fc2d47aecd849cc48102179cd.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
创建debug任务成功后
![img_fd9b178eb90aa9ea03ba71d95edf2d90.png](https://yqfile.alicdn.com/img_fd9b178eb90aa9ea03ba71d95edf2d90.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
3.开始调试
打断点
![img_7f965d9e4e7ef8f4e79ce6c58a584e29.png](https://yqfile.alicdn.com/img_7f965d9e4e7ef8f4e79ce6c58a584e29.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
开始调试
![img_a71995d3ed0aa4e99e784a13561df884.png](https://yqfile.alicdn.com/img_a71995d3ed0aa4e99e784a13561df884.png?x-oss-process=image/resize,w_1400/format,webp)
image.png
![img_8f6884c5f0091c7e142aecdbfcd38834.png](https://yqfile.alicdn.com/img_8f6884c5f0091c7e142aecdbfcd38834.png?x-oss-process=image/resize,w_1400/format,webp)
image.png