PDA

View Full Version : How to debug custom pentaho plugin within pentahoBI by setting breakpoint



jkimi
06-05-2015, 03:44 AM
Hi Everyone,


I am a java developer.

I want to know how to debug my own pentaho plugin within pentaho by set breakpoint in my plugin sourcecode.


I found pentaho is only read plugin jars from pentaho-solutions\system\<plugin-name>\lib\ . Is it possible that make pentahoBI read plugin src ?


My pentaho BI platform is 5.2.0.0.209.


Please help me out!

kynx
06-08-2015, 07:56 AM
Yes. Which IDE are you using?

I'm using CBF[1] for the builds. In IntelliJ I think I just set up the pentaho source as one module and my plugin as another. I've hacked around with CBF's build.xml so it compiles my plugin copies it to the right dir under pentano-solutions. Then I attached the debugger to the running tomcat instance all it all just worked.

[1]:
http://www.webdetails.pt/ctools/cbf/ (https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CC8QFjAA&url=http%3A%2F%2Fwww.webdetails.pt%2Fctools%2Fcbf%2F&ei=g4F1Vcq2N6v5ywPxk4GoCQ&usg=AFQjCNFp-WoemKtFQGCkbkl32qzunUGr-A&bvm=bv.95039771,d.bGQ)
http://pedroalves-bi.blogspot.co.uk/2014/06/cbf-revisited-compiling-pentaho-ba.html