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 <[email protected]
> wrote:

> Hi,
>
> On Tue, Oct 6, 2015 at 10:59 AM, Dominik Süß <[email protected]>
> 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 to debug the server-side code is to disable surefire
> forking so that the MAVEN_OPTS are used to configure the jvm
> debuggging:
>
>   $ export MAVEN_OPTS="-Xmx1G  -XX:MaxPermSize=256m
> -agentlib:jdwp=transport=dt_socket,address=30303,server=y,suspend=y"
>
>   $ mvn -o clean test -Dtest=BundlePrioritiesTest -DforkCount=0
>
> You can then connect to the VM on port 30303 to debug the
> OsgiInstallerImpl, for example. And of course replace the
> BundlePrioritiesTest name with whatever makes sense.
>
> -Bertrand
>

Reply via email to