Configure Remote debugging in Ideasocket
set GRADLE_OPTS environment variablegradle
export GRADLE_OPTS ="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
suspend表明是否要在斷點處暫停,默認爲 n,須要改成 y 才能夠debugdebug
./gradlew someTask -Dorg.gradle.debug=true --no-daemon
attach debuggercode