[
https://issues.jboss.org/browse/JBTM-1925?page=com.atlassian.jira.plugin....
]
Paul Robinson updated JBTM-1925:
--------------------------------
Description:
We need to enable the debugger in all arquillian.xml files. To do this:
1. Add this to each arquillian.xml:
{code}
<configuration>
<property
name="javaVmArguments">${server.jvm.args}</property>
....
</configuration>
{code}
2. Update the server.jvm.args in each maven profile for running the Arquillian tests:
{code}
<server.jvm.args>..... ${jvm.args.debug}</server.jvm.args>
{code}
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:
{code}
<jvm.args.debug>-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n</jvm.args.debug>
{code}
was:
This allows us to attach to hung AS instances and see what they are doing.
Adding this to narayana.sh should do the trick:
{code}
echo JAVA_OPTS='"$JAVA_OPTS
-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"' >>
./bin/standalone.conf
{code}
Enable remote debugger in JBossAS/WildFly for all tests
-------------------------------------------------------
Key: JBTM-1925
URL:
https://issues.jboss.org/browse/JBTM-1925
Project: JBoss Transaction Manager
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Testing
Reporter: Paul Robinson
Assignee: Paul Robinson
Fix For: 4.17.11, 5.0.0.M5
We need to enable the debugger in all arquillian.xml files. To do this:
1. Add this to each arquillian.xml:
{code}
<configuration>
<property
name="javaVmArguments">${server.jvm.args}</property>
....
</configuration>
{code}
2. Update the server.jvm.args in each maven profile for running the Arquillian tests:
{code}
<server.jvm.args>..... ${jvm.args.debug}</server.jvm.args>
{code}
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:
{code}
<jvm.args.debug>-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n</jvm.args.debug>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira