Gradle断点调试
文章链接:https://blog.csdn.net/feather_wch/article/details/131746456
Run Configuration
Run/debug configutation中点击加号,选择Remote JVM Debug,默认port 5005,默认名“plugin-debug”
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
方法(一)Gradle Task中选择需要的task,右键,新建Task
- Gradle Task中选择assembleDebug,右击Modify Run Configuration
- 选择Modify Options
- 选择Add VM options, 输入“-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005”
- 在最下面Run Configurations 找到新增的任务“xxxxx”
- 右击选择 run
运行处选择plugin-debug点击Debug调试按钮
选择debug “plugin-debug”