Debugging Implementation when running ITs

2015-10-06 Thread Dominik Süß
Hi everybody, I currently want to hook in a debugger to the implementation of the installer when running the corresponding ITs as I want to inspect the implementation behavior and see if I could add a patch that helps in upgrade scenarios. Yet I had no success getting the IT start in a way that

Re: Debugging Implementation when running ITs

2015-10-06 Thread Bertrand Delacretaz
On Tue, Oct 6, 2015 at 11:22 AM, Konrad Windszus wrote: > ...this does only work, if you provision a new server instance, but not if > your > a connecting to an already running server But in the latter case one just needs to start that server with JVM debugging options and

Re: Debugging Implementation when running ITs

2015-10-06 Thread Konrad Windszus
Just set a breakpoint to org.apache.sling.testing.tools.jarexec.JarExecutor.start() and then start the debugging on the client side (also documented at https://sling.apache.org/documentation/development/sling-testing-tools.html). You should see now which JVM options are used to start the

Re: Debugging Implementation when running ITs

2015-10-06 Thread Bertrand Delacretaz
Hi, On Tue, Oct 6, 2015 at 10:59 AM, Dominik Süß wrote: > ...I currently want to hook in a debugger to the implementation of the > installer when running the corresponding ITs... The sling/installer/it module uses Pax Exam and runs the tests with surefire. A simple way

Re: Debugging Implementation when running ITs

2015-10-06 Thread Dominik Süß
Thanks Konrad & Bertrand, Bertrands commands for the Pax Exam tests worked for me as well :) Cheers Dominik On Tue, Oct 6, 2015 at 12:26 PM, Bertrand Delacretaz wrote: > Hi, > > On Tue, Oct 6, 2015 at 10:59 AM, Dominik Süß > wrote: > > ...I