Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug WSO2 ESB code

How do you typically debug the ESB code? I am using log statements but they are kind of lost in system logs. Is there a better mechanism to be used?

Thanks,

like image 205
Ashish Pandit Avatar asked Oct 08 '13 18:10

Ashish Pandit


2 Answers

You can do remote debugging from your IDE with ESB code.

First start the ESB server script with debug option as follows.

wso2server.sh -debug 5005

where the number is any port number used for remote debugging from your IDE.

Then run debug in your IDE with whatever the port number you assigned.

like image 182
Nufail Avatar answered Nov 08 '22 19:11

Nufail


First, you have to setup debug configurations in your IDE which is can be learned using this wso2 article

Then start the ESP server with debug option as follows.

<esb_home>/bin/wso2server.sh -debug 5005

After you start the server you will get this message:

Listening for transport dt_socket at address: 5005

Then start debugging from your IDE!

enter image description here

This is the debug configuration I used:

edit configurations

like image 20
tk_ Avatar answered Nov 08 '22 20:11

tk_