windows - How can I debug Gradle scripts and classes, called by them, using only these scripts and IntelliJIdea settings? -


debugging of build.gradle script impossible. can debug classes placed in buildsrc folder. need set debugging in project itself, other people debug it, too, , want have project settings consistant team members.

i have found have add remote run/debug configuration. done. thing can inside intellij.

according advice on net, after need set:

-xdebug -xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 or export gradle_opts="-xdebug -xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"  or (in .gradle/gradle.properties) org.gradle.jvmargs=-xx:maxpermsize=4g -xx:+heapdumponoutofmemoryerror -xmx4g -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005  ,  -dorg.gradle.debug=true or run gradle daemon -dorg.gradle.daemon=true  or never run gradle daemon $ ./gradlew sometask -dorg.gradle.daemon=false #!important, disable daemon mode or  don't pay attention if gradle runs daemon 

and after launch remote-debug config , or task-debug

i want have setting:

  • exactly defined detail should set if need , these settings must in intellij only. no terminals, system variables (many people have work without admin rights - in banks, example)
  • launching task
  • stopping @ breakpoints in classes in buildsrc


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -