1. add remote debug configuration
2. copy jvm options : (-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005), and paste it to gradle.properties file.
3. then click debug button to attach localhost:5005, expand the gradle task list and click to run assmble project to start up build process.