Return-Path: Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: (qmail 40474 invoked from network); 16 Oct 2008 04:59:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2008 04:59:30 -0000 Received: (qmail 61876 invoked by uid 500); 16 Oct 2008 04:59:31 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 61842 invoked by uid 500); 16 Oct 2008 04:59:31 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 61831 invoked by uid 99); 16 Oct 2008 04:59:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 21:59:31 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of supun06@gmail.com designates 209.85.198.235 as permitted sender) Received: from [209.85.198.235] (HELO rv-out-0506.google.com) (209.85.198.235) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 04:58:22 +0000 Received: by rv-out-0506.google.com with SMTP id f6so3043923rvb.51 for ; Wed, 15 Oct 2008 21:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=GXnzJnO+ZF5QksD1b/br4HocG2C+DKQkR1HW/d8fT8E=; b=RC0xQuAMuMz95D2X9vlzs6ne8g8pD1YiWP4/ty8NVRCc9bQNO063shMXG+/ZaqtwFP SDogRSJxcjIr01IieA/LDkOXGZYcrTYJPcBmtO7XDkl0BeBU/er3NNzRFuKvtRMILEiE F2c4OXKtjAG9Z9WEAwqKqPMJYObpJ6i88Bupc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=l7BOvAbya+aqXXUiEuAoupQkL+t9nSRnAHnOwEC+hY50vEUCMoi6R5OPTSlx5sNAng 4tBgaiUr9/D5rPYbzKCUvYotzgcpANftSXr3MBDBsRxt5jDd/bKH+2Bixktv2BdbauIt P0VO1zoxR9A6MA/x43TOigXl4DWs/qs0Ah25I= Received: by 10.115.109.1 with SMTP id l1mr1745399wam.78.1224133130355; Wed, 15 Oct 2008 21:58:50 -0700 (PDT) Received: by 10.114.124.15 with HTTP; Wed, 15 Oct 2008 21:58:50 -0700 (PDT) Message-ID: Date: Thu, 16 Oct 2008 09:58:50 +0500 From: "Supun Kamburugamuva" To: dev@synapse.apache.org Subject: Re: How to debug Synapse In-Reply-To: <48F6B94F.2040701@wso2.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17407_15627242.1224133130357" References: <48F5AD00.3030807@wso2.com> <672a01200810151010t142272abhd82946f89a814044@mail.gmail.com> <8812c4670810151027h8bad31ekb4408ba00b5ae767@mail.gmail.com> <672a01200810151638u598de73dle1a832552e19326@mail.gmail.com> <48F6B94F.2040701@wso2.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_17407_15627242.1224133130357 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks everyone for the great help. I have managed to get Synapse debugging working from IDE as well as remotely. Supun. On Thu, Oct 16, 2008 at 8:47 AM, Saliya Ekanayake wrote: > Agreeing with Eric and Ruwan, Synapse provides very easy method to do > remote debugging. Just use the -xdebug option and that's it. Use the default > configuration of the IDE altering just the port to 8000 and it will get > attached. > > Run/Debug on Synapse code from the IDE is useful when you want to debug > states while Synapse starts itself. Remote debugging is useful only after > Synapse has started. > > Thanks, > Saliya > > Ruwan Linton wrote: > >> Hi Senaka, >> >> Can you please explain the pain of using IDE to remote debug or to setup >> the Main class to run/debug??? As Eric pointed you could use the remote >> debugging of the IDE or easily use the Main class setup... (It is just a >> normal Main class with several arguments) >> Thanks, >> Ruwan >> >> On Wed, Oct 15, 2008 at 10:57 PM, Senaka Fernando > senakafdo@gmail.com>> wrote: >> >> Hi Ruwan, >> >> IDE based debugging is kinda painful to setup, isn't using JDB >> (command line) as stated above easier? I'd like to have an opinion >> on this. >> >> Regards, >> Senaka >> >> >> On Wed, Oct 15, 2008 at 10:40 PM, Ruwan Linton >> > wrote: >> >> Supun, >> >> That is for remote debugging, and if you need to run/debug >> synapse within your IDE, you should look at the SynapseServer >> (which is the main class that you should run to start synapse) >> and set the relevant program parameters to the run/debug as >> required by the SynapseServer class. >> >> Thanks, >> Ruwan >> >> >> On Wed, Oct 15, 2008 at 2:12 PM, Asankha C. Perera >> > wrote: >> >> Supun >> >> Start ./synapse.sh or .bat passing "-xdebug" and the Java >> process will listen on port 8000 for your IDE >> >> asankha >> >> >> Supun Kamburugamuva wrote: >> >> Hi all, >> >> Is there any documentation available on how to set up >> Syanapse for debugging? I'm new to Synapse, so your >> help is much appreciated. >> >> Supun. >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org >> >> For additional commands, e-mail: >> dev-help@synapse.apache.org >> >> >> >> >> >> -- Ruwan Linton >> http://wso2.org - "Oxygenating the Web Services Platform" >> http://ruwansblog.blogspot.com/ >> >> >> >> >> >> -- >> Ruwan Linton >> http://wso2.org - "Oxygenating the Web Services Platform" >> http://ruwansblog.blogspot.com/ >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org > For additional commands, e-mail: dev-help@synapse.apache.org > > -- Software Engineer, WSO2 Inc http://wso2.org ------=_Part_17407_15627242.1224133130357 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Thanks everyone for the great help. I have managed to get Synapse debugging working from IDE as well as remotely.

Supun.

On Thu, Oct 16, 2008 at 8:47 AM, Saliya Ekanayake <saliya@wso2.com> wrote:
Agreeing with Eric and Ruwan, Synapse provides very easy method to do remote debugging. Just use the -xdebug option and that's it. Use the default configuration of the IDE altering just the port to 8000 and it will get attached.

Run/Debug on Synapse code from the IDE is useful when you want to debug states while Synapse starts itself. Remote debugging is useful only after Synapse has started.

Thanks,
Saliya

Ruwan Linton wrote:
Hi Senaka,

Can you please explain the pain of using IDE to remote debug or to setup the Main class to run/debug??? As Eric pointed you could use the remote debugging of the IDE or easily use the Main class setup... (It is just a normal Main class with several arguments)
Thanks,
Ruwan

On Wed, Oct 15, 2008 at 10:57 PM, Senaka Fernando <senakafdo@gmail.com <mailto:senakafdo@gmail.com>> wrote:

   Hi Ruwan,

   IDE based debugging is kinda painful to setup, isn't using JDB
   (command line) as stated above easier? I'd like to have an opinion
   on this.

   Regards,
   Senaka


   On Wed, Oct 15, 2008 at 10:40 PM, Ruwan Linton
   <ruwan.linton@gmail.com <mailto:ruwan.linton@gmail.com>> wrote:

       Supun,

       That is for remote debugging, and if you need to run/debug
       synapse within your IDE, you should look at the SynapseServer
       (which is the main class that you should run to start synapse)
       and set the relevant program parameters to the run/debug as
       required by the SynapseServer class.

       Thanks,
       Ruwan


       On Wed, Oct 15, 2008 at 2:12 PM, Asankha C. Perera
       <asankha@wso2.com <mailto:asankha@wso2.com>> wrote:

           Supun

           Start ./synapse.sh or .bat passing "-xdebug" and the Java
           process will listen on port 8000 for your IDE

           asankha


           Supun Kamburugamuva wrote:

               Hi all,

               Is there any documentation available on how to set up
               Syanapse for debugging? I'm new to Synapse, so your
               help is much appreciated.

               Supun.



           ---------------------------------------------------------------------
           To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
           <mailto:dev-unsubscribe@synapse.apache.org>

           For additional commands, e-mail:
           dev-help@synapse.apache.org
           <mailto:dev-help@synapse.apache.org>





       --        Ruwan Linton
       http://wso2.org - "Oxygenating the Web Services Platform"
       http://ruwansblog.blogspot.com/





--
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org




--
Software Engineer, WSO2 Inc
http://wso2.org
------=_Part_17407_15627242.1224133130357--