You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "Raj@nih" <yr...@gmail.com> on 2007/10/10 19:17:22 UTC

debugging configuration

can anyone send me step of step project remote debugging configuration in
eclipse
i did all the steps in docs but is not working 
do i have to write 
SET SERVICEMIX_DEBUG=TRUE premanently 
in servicemix.bat to make servicemix start in debug mode in eclipse? and
where exactly do i write?
Is the port 5005 rihgt for listening?
Regards,
Yogaraj
-- 
View this message in context: http://www.nabble.com/debugging-configuration-tf4602149s12049.html#a13140264
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: debugging configuration

Posted by Gert Vanthienen <ge...@skynet.be>.
Yogaraj,

You have to set this environment variable in the terminal/command window 
right before you start ServiceMix itself.  After the variable has been 
set, you start servicemix using bin\servicemix.bat as usual.

In the logging, you should see something like
servicemix: Enabling Java debug options: -Xdebug -Xnoagent 
-Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
Listening for transport dt_socket at address: 5005
Do you see this in your logging?

After ServiceMix has started, you can start a remote debugging session 
in Eclipse as mentioned on the web page I previously referred you to.  
Be sure to add the bean SU to the debug configuration.  As soon as you 
started the remote debug session, you should see the list of ServiceMix 
threads in Eclipse's Debug view -- this means the debugger is 
communicating with the ServiceMix instance.  If you set a breakpoint in 
the bean code, your Eclipse debugger should get control as soon as the 
breakpoint is hit.

Hope this helps,

Gert

Raj@nih wrote:
> can anyone send me step of step project remote debugging configuration in
> eclipse
> i did all the steps in docs but is not working 
> do i have to write 
> SET SERVICEMIX_DEBUG=TRUE premanently 
> in servicemix.bat to make servicemix start in debug mode in eclipse? and
> where exactly do i write?
> Is the port 5005 rihgt for listening?
> Regards,
> Yogaraj
>