On 10/04/10 1:07 AM, Felipe Cypriano wrote:
Hello,

I'm working on my first project with Gradle and I'm trying to debug the test execution, but I didn't find what option start the task in debug mode. The only thing about debug I found on the docs was about logs.

How to debug my project, I'm using Intellij IDEA?

If you want to debug the execution of your test classes, you can add the appropriate jvm args to the jvm which runs the tests. For example, you could do:

test {
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005'
}

Have a look at the javadoc for the Test task for more options (though, there isn't a debug flag, yet): http://gradle.org/0.9-preview-1/docs/javadoc/org/gradle/api/tasks/testing/Test.html


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to