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

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

Please help me out!

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.

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)