Skip to content

Commit 1f2a05f

Browse files
committed
Added comments for how to debug arquillian managed container
1 parent 99dca8d commit 1f2a05f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# How to Debug TestSuite when using Arquillian Manager container
2+
3+
To debug a managed container we need to use remote debugging.
4+
Check here: http://arquillian.org/guides/getting_started_rinse_and_repeat/#debug_a_managed_server
5+
6+
1. Edit `arquillian.xml` to include the following:
7+
8+
`<property name="javaVmArguments">-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=y -Dorg.jboss.server.bootstrap.maxThreads=1</property>`
9+
10+
Using the above, when the test case starts it will suspend waiting for the remote debugger to connect
11+
12+
2. Using IDE settings, prepare remote debugging configuration that points to 127.0.0.1:8787
13+
14+
3. Start test case, you will notice it suspend waiting for remote debugger
15+
16+
4. Start remote debugger
17+
18+
## Important note
19+
20+
Remote debugging property should always be removed, otherwise CI and CD jobs will fail to run automatically testsuite

0 commit comments

Comments
 (0)