cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging a JavaDelegate

jdf1963
Champ in-the-making
Champ in-the-making
I have created a Java class to implement the JavaDelegate interface and created the execute method.  How can I attach a debugger and step through my code when it is executed by Activiti?  Is there a document explaining the procedure?

Thanks in advance,
Don
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi Don,

Are you executing from a unit test or how are you testing the code?
From a unit test it's really easy, just set a breakpoint and run in debug mode.

Best regards,

alxt
Champ in-the-making
Champ in-the-making
1. Create unit-test and debug - http://activiti.org/userguide/#apiUnitTesting
2. Debug in tomcat/… by remote debug from eclipse/…
3. Change pom.xml of activiti-webapp-explorer2 - add Your jar with code - and start web-application from eclipse/…