Hi Supun,

Thanks for the reply. Will have a look @ it.

Thanks,
Senaka

On Thu, Oct 16, 2008 at 2:51 PM, Supun Kamburugamuva <[EMAIL PROTECTED]>wrote:

> Hi Senaka,
>
> Please have a look at the SynapseServer.java file. You can run that from
> the IDE. That file contains a description about the command line arguments
> it accepts. You can specify the sample synapse configuration file as a
> command line argument and synapse will run the specified sample.
>
> These are the command line arguments that I have used.
>
> E:\\synapse\\target\\synapse-SNAPSHOT\\repository\\
> E:\\synapse\\target\\synapse-SNAPSHOT\\repository\conf\\axis2.xml
> E:\\synapse\\target\\synapse-SNAPSHOT\\
>
> E:\\synapse\\target\\synapse-SNAPSHOT\\repository\\conf\\sample\synapse_sample_2.xml
>
> Regards,
> Supun.
>
>
> On Thu, Oct 16, 2008 at 1:07 PM, Senaka Fernando <[EMAIL PROTECTED]>wrote:
>
>> Hi all,
>>
>> Thanks for the information. I think I must have gone on the wrong track. I
>> did not mean remote debugging through IDE here, but just normal debugging.
>> And, many thanks for the valuable point Saliya. Yes, you can't debug the
>> startup of course.
>>
>> And, I managed to debug Synapse in an IDE (by simply looking at the
>> startup script etc.), but, it was a bit hard for me to debug a typical
>> Synapse sample, running it solely in an IDE. Can anyone help me on this?
>>
>> Thanks,
>> Senaka
>>
>>
>> On Thu, Oct 16, 2008 at 9:17 AM, Saliya Ekanayake <[EMAIL PROTECTED]>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 <[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]
>>>
>>>
>>
>
>
> --
> Software Engineer, WSO2 Inc
> http://wso2.org
>

Reply via email to