如何调试 WSO2 ESB 代码 [英] How to debug WSO2 ESB code

查看:39
本文介绍了如何调试 WSO2 ESB 代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您通常如何调试 ESB 代码?我正在使用日志语句,但它们在系统日志中有点丢失.有没有更好的机制可以使用?

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?

谢谢,

推荐答案

您可以使用 ESB 代码从 IDE 进行远程调试.

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

首先使用调试选项启动 ESB 服务器脚本,如下所示.

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

wso2server.sh -debug 5005

其中数字是用于从 IDE 进行远程调试的任何端口号.

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

然后使用您分配的任何端口号在您的 IDE 中运行调试.

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

这篇关于如何调试 WSO2 ESB 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆