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 <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 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
    <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 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
        <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 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: [EMAIL PROTECTED]
            <mailto:[EMAIL PROTECTED]>
            For additional commands, e-mail:
            [EMAIL PROTECTED]
            <mailto:[EMAIL PROTECTED]>




-- 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to