On Tue, Feb 03, 2009 at 05:35:58PM -0500, Jason Dobies wrote: > I'm not sure how others do it (or if this is commonly known), but I was > looking to attach a debugger to ant as it runs my test cases. Putting > the following lines into the java/buildconf/build-utils.xml file in the > junit task (roughly line 77) sets the tests to suspend until the > debugger is attached. > > > <jvmarg value="-Xdebug"/> > <jvmarg > value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/> > > > I'd like to look into a set up where we can do something like: > > ant -Dtestcase=foo -Dtestdebug test > > But the junit task doesn't support my first idea for how to do that, so > it's gonna take a bit more looking.
I just added it but you have to do -Dtestdebug=true. I couldn't get it to work with just -Dtestdebug :) -- jesus m. rodriguez | [email protected] sr. software engineer | irc: zeus rhn satellite & spacewalk | 919.754.4413 (w) rhce # 805008586930012 | 919.623.0080 (c) +-------------------------------------------+ | "Those who cannot learn from history | | are doomed to repeat it." | | -- George Santayana | +-------------------------------------------+ _______________________________________________ Spacewalk-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-devel
