Chiond, You can run the examples using the launcher with debug enabled and attach to the process from eclipse using the remote debugger (Run/Debug/Remote Java Application)
Ta Meeraj -----Original Message----- From: Chiond Huang [mailto:[EMAIL PROTECTED] Sent: 04 August 2006 08:18 To: tuscany-dev@ws.apache.org Subject: Re: Running samples from inside eclipse. Hi Jeremy, Can you tell us more detail for how to attach this thread? Moreover, since the current methods of running samples can usually through running the wrapped jar package of user-developed applications on launcher.jar or by extending testcase from SCATestCase. But is there a way to debug sample applications through Eclipse or other IDE? Chiond Jeremy Boynes <[EMAIL PROTECTED]> wrote: On Aug 3, 2006, at 11:24 AM, ant elder wrote: > Hi David. > > Very topical question! You get the NPE as you're not running in an SCA > runtime. You can run the sample outside of eclipse as described in > this > email: > http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200607.mbox/ > browser. Doing this, you can also use remote debugging to debug it: $ java -Xdebug -Xnoagent -Djava.compiler=NONE - Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -jar bin/ launcher.jar --classpath ~/.m2/repository/org/apache/tuscany/samples/ sca/sample-localwire/1.0-SNAPSHOT/sample-localwire-1.0-SNAPSHOT.jar and then attach to the suspended process. -- Jeremy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. This message has been checked for all email viruses by MessageLabs. ***************************************************** You can find us at www.voca.com ***************************************************** This communication is confidential and intended for the exclusive use of the addressee only. You should not disclose its contents to any other person. If you are not the intended recipient please notify the sender named above immediately. Registered in England, No 1023742, Registered Office: Voca Limited Drake House, Three Rivers Court, Homestead Road, Rickmansworth, Hertfordshire, WD3 1FX This message has been checked for all email viruses by MessageLabs. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]