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

Enable remote debugger in JBossAS/WildFly for all tests

    XMLWordPrintable

Details

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

    Description

      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>
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: