From jdo-dev-return-2754-apmail-db-jdo-dev-archive=www.apache.org@db.apache.org Tue Jan 03 20:58:27 2006 Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 81588 invoked from network); 3 Jan 2006 20:58:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jan 2006 20:58:27 -0000 Received: (qmail 56518 invoked by uid 500); 3 Jan 2006 20:58:27 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 56502 invoked by uid 99); 3 Jan 2006 20:58:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 12:58:27 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.224.30.66] (HELO service-01.spree.de) (212.224.30.66) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 12:58:26 -0800 Received: from [172.16.2.80] (vpn-server [192.168.16.104]) (authenticated bits=0) by service-01.spree.de (8.13.4/8.13.4/Debian-3) with ESMTP id k03KtsKV002897 for ; Tue, 3 Jan 2006 21:55:55 +0100 Message-ID: <43BAE55D.90109@spree.de> Date: Tue, 03 Jan 2006 21:58:05 +0100 From: Michael Bouschen Organization: Tech@Spree Engineering User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jdo-dev@db.apache.org Subject: Re: You can now debug tck20! References: <008201c6107f$3c8b4910$1e0010ac@DELLZILLA> In-Reply-To: <008201c6107f$3c8b4910$1e0010ac@DELLZILLA> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Matthew, thanks for checkin it in. Regards Michael >Hi Michael, > >Cool, that sounds fine. I was running out of time when I finished that; I >knew it was redundant. Thanks for finishing it up! > >--matthew > > > >>-----Original Message----- >>From: Michael Bouschen [mailto:mbo.tech@spree.de] >>Sent: Sunday, January 01, 2006 1:40 PM >>To: jdo-dev@db.apache.org >>Subject: Re: You can now debug tck20! >> >> >>Hi Matthew, >> >>thanks for adding debug support to maven.xml, this is great! >> >>I would like to propose two improvements: >>- I always get a message "JVM will wait until debugger >>attaches on port >>..." even if I call runtck.jdori. I think the check whether property >>debugJvmargs is set needs to use the empty operator instead of >>comparing >>!= '' >> >>- I noticed the goals debugtck.iut and debugtck.jdori use the >>same code >>to set the debug properties. I refactored the goals and added >>a separate >>goal setDebugProps managing the debug properties. >> >>You find a patch attached. Please give it a try and let me >>know what you >>think. >> >>Regards Michael >> >> >> >>>There are now two new targets in trunk/tck20/maven.xml that >>> >>> >>cause the forked >> >> >>>JVM to include debugging arguments: debugtck.jdori and debugtck.iut. >>>They're simply convenience goals that set simply set the property >>>"jdo.tck.debug.jvmargs" if it's not set, then attain the >>> >>> >>runtck.jdori or >> >> >>>runtck.iut, respectively, which are now sensitive to >>> >>> >>jdo.tck.debug.jvmargs. >> >> >>>The default debug transport is dt_socket. For convenience, >>> >>> >>if you do not >> >> >>>set a port, the default is 8787, but you can set the port via >>> >>> >>the property >> >> >>>"jdo.tck.debug.port". So, for example, to debug a >>> >>> >>configuration of your >> >> >>>choice, in any IDE you like, simply exec on the command line >>> >>>maven -Djdo.tck.cfglist=detach.conf debugtck.jdori >>> >>>Wait for the message that the JVM is waiting for a debugger >>> >>> >>to attach, then >> >> >>>attach your IDE to the port given using dt_socket transport. >>> >>> >>If you want to >> >> >>>set the port, execute >>> >>>maven -Djdo.tck.cfglist=detach.conf -Djdo.tck.debug.port=7859 >>> >>> >>debugtck.jdori >> >> >>>If you want to control the entire set of debug jvm arguments, execute >>> >>>maven -Djdo.tck.cfglist=detach.conf -Djdo.tck.debug.jvmargs="-Xdebug >>>-Xnoagent ..." runtck.jdori >>> >>>You can also use the target debugtck.jdori instead of >>> >>> >>runtck.jdori, but >> >> >>>it'll just end up calling runtck.jdori. >>> >>>I hope this helps everyone out! >>> >>>--matthew >>> >>> >>> >>>Matthew T. Adams >>>Corporate Technical Advisor & Senior Consultant >>>Mobile: +1 253 732 1051 >>>Phone: +1 206 331 3833 >>>Fax: +1 815 331 0952 >>>matthew.adams@xcalia.com >>>P.O. Box 24163 >>>Federal Way, WA 98093 >>>www.xcalia.com >>> >>> >>> >>>Xcalia makes implementing SOA easy with agile business intermediation >>>software that combines heterogeneous data with services to >>> >>> >>easily develop >> >> >>>and deploy transactional composite applications. Enterprises >>> >>> >>can quickly >> >> >>>respond to changing business requirements and dramatically >>> >>> >>reduce the costs >> >> >>>of data access and service integration. >>> >>> >>> >>> >>> >>-- >>Michael Bouschen Tech@Spree Engineering GmbH >>mailto:mbo.tech@spree.de http://www.tech.spree.de/ >>Tel.:++49/30/235 520-33 Buelowstr. 66 >>Fax.:++49/30/2175 2012 D-10783 Berlin >> >> >> >> > > > -- Michael Bouschen Tech@Spree Engineering GmbH mailto:mbo.tech@spree.de http://www.tech.spree.de/ Tel.:++49/30/235 520-33 Buelowstr. 66 Fax.:++49/30/2175 2012 D-10783 Berlin