Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1925

Enable remote debugger in JBossAS/WildFly for all tests

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.17.13, 5.0.0.M7
    • None
    • Testing
    • None

      We need to enable the debugger in all arquillian.xml files. To do this:

      1. Add this to each arquillian.xml:

              <configuration>
                  <property name="javaVmArguments">${server.jvm.args}</property>
                  ....
              </configuration>
      

      2. Update the server.jvm.args in each maven profile for running the Arquillian tests:

      <server.jvm.args>..... ${jvm.args.debug}</server.jvm.args>
      

      Look at the XTS/localjunit/pom.xml for an example. You will notice that not all Arquillian profiles configure the server.jvm.args. In which case you will need to add the config to match the others.

      3. Add this property to the root pom,xml:

       <jvm.args.debug>-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n</jvm.args.debug>
      

              gtrikler@redhat.com Gytis Trikleris (Inactive)
              paul.robinson@redhat.com Paul Robinson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: