-
1. Re: Debugging RHQ with Eclipse
tsegismont Aug 20, 2013 5:49 AM (in response to arun2arunraj)1 of 1 people found this helpfulYes it's possible. You need remote debug. See: https://docs.jboss.org/author/display/RHQ/Advanced+Build+Notes#AdvancedBuildNotes-DebuggingaRunningAgent
-
2. Re: Debugging RHQ with Eclipse
arun2arunraj Aug 21, 2013 1:52 AM (in response to tsegismont)Thanks Thomas, I will try it out.
Regards,
ArunRaj.
-
3. Re: Debugging RHQ with Eclipse
genman Aug 21, 2013 6:12 PM (in response to arun2arunraj)1 of 1 people found this helpfulI found debugging much, much easier by using the ComponentTest.java class I created. This is one incarnation of it I wrote for testing the Oracle plugin. (I have a newer version with more features and fixes I might contribute at some point.)
You then don't have to do remote debugging, and in fact have a lot of flexibility in configuring and running your component. Of course, there are a few limitations.
-
4. Re: Debugging RHQ with Eclipse
arun2arunraj Aug 22, 2013 12:14 AM (in response to genman)Hi Elias,
How to debug my custom plugin with componentTest.java ? I mean the steps to debug with eclipse.
I am preferring eclipse because It helps to debug at method level and variable level ( breakpoints ). Your code could do that ? Otherwise suggest another solution too.
Regards,
ArunRaj.
-
5. Re: Debugging RHQ with Eclipse
genman Aug 23, 2013 6:30 PM (in response to arun2arunraj)Well, in short you basically create unit tests like those already part of RHQ.
Then take a look at the tests for say, the rhq-database-plugin project.
See also: https://docs.jboss.org/author/display/RHQ/Eclipse+Tips