How to debug WSO2 ESB code

徘徊边缘 提交于 2019-12-10 02:52:05

问题


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,


回答1:


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.




回答2:


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!

This is the debug configuration I used:




回答3:


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.



来源:https://stackoverflow.com/questions/19255307/how-to-debug-wso2-esb-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!