放 android 团队用的 gradle 插件
run -> Edit Configurations -> + -> Remote
export GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
./gradlew assembleRelease -Dorg.gradle.daemon=false
点一下ide上的小虫子吧,和debug程序一样
unset GRADLE_OPTS