Debugging with Arquillian in IntelliJ - Managed Container

眉间皱痕 提交于 2019-12-03 09:04:01

There are 3 JVM running in this case. So this is a special debug case.

  1. 1st JVM-> Started by Arquillian/Junit to perform the tests.
  2. 2nd JVM-> Started by Arquillian to run managed Jboss.
  3. 3rd JVM-> It's a remote debugging configuration that must be ported to JVM number 2 in order to debug 2nd JVM. Check out this blog

So this is the idea, Run test (2nd JVM will be suspended until a JVM is attached to it), then run a new remote configuration, as soon as this starts, the past JVM will run.

It's a bit confusing but works.

Note that if you only have 2 JVM in simple debug mode, you will be debugging arquillian/junit JVM, which is not the one you are interested.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!