在 Eclipse 中调试 FuseESB 应用程序 [英] Debugging FuseESB application in Eclipse
问题描述
Fuse ESB 使用带有 OSGi 的 karaf 服务器.
Fuse ESB uses karaf server with OSGi.
对于代码,如果有人有获取应用程序调试器的步骤,它将有所帮助.
for the code if anybody has steps to get the debugger for the application it will help.
我目前正在使用 Eclipse Indigo.由于使用了 OSGi,我们使用 Maven 来构建它.
I am currently using Eclipse Indigo. As OSGi is used we are using Maven to build the same.
哪个插件可以帮助 Karaf 使用 OSGi
Which plugin will help for Karaf with OSGi
推荐答案
Java 允许您远程调试任何正在运行的 JVM.
Java allows you to remote debug any JVM running.
因此,如果您使用调试参数启动 ESB,那么它将以调试模式运行,侦听端口 5005.
So if you start the ESB with a debug argument, then it will run in debug mode listening on port 5005.
davsclaus:/opt/fuse-esb-7.0.1.fuse-084$ bin/fuseesb debug
Listening for transport dt_socket at address: 5005
然后您可以使用该端口号从 Eclipse 进行远程调试.这是标准的 Java 远程调试,Eclipse 已经有一个向导.它是具有远程调试功能的调试向导.
Then you can do remote debugging from Eclipse using that port number. This is standard Java remote debugging, and Eclipse has a wizard for that already. Its the debug wizard which has a remote debug functionality.
这篇关于在 Eclipse 中调试 FuseESB 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!