Reputation: 9801
I usually got by with elaborate logging configurations. But now I want to debug parts of the ActiveMQ "Classic" 5.15.5 broker component in Eclipse (Photon). After downloading, building and running mvn eclipse:eclipse
I now have a workspace full of component projects with no associated run configurations. For some reason mvn install
generates an executable in activemq-assembly/src/release/bin
but that seems to be limited and it is not obvious, what it is that I have to tell Eclipse to run.
I have had similar problems before.
In general: Do I just guess a Main
(there are a'plenty) and search with trial-and-error? Or is there a structured approach that you can take towards debugging such loosely coupled applications?
Upvotes: 0
Views: 112
Reputation: 35162
I would suggest using remote debugging which can be used by any modern Java IDE (e.g. Eclipse, IDEA, etc.). Follow these steps:
env
file in the bin
directory of your ActiveMQ instance and uncomment the line defining ACTIVEMQ_DEBUG_OPTS
.Upvotes: 1