How to debug WSO2 ESB code
Asked Answered
G

3

10

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,

Gild answered 8/10, 2013 at 18:18 Comment(0)
M
16

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.

Macey answered 9/10, 2013 at 5:25 Comment(0)
B
5

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

Brubeck answered 17/10, 2014 at 6:7 Comment(1)
IntelliJ Friendly :)Britzka
G
0

You can use eclipse IDE. Start ESB using below command.

wso2server.bat debug 8000 -Desb.debug=true

Setup eclipse remote java application.setup ESB server.

Eclipse configuration

Georgiannegeorgic answered 18/3, 2017 at 9:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.