Search code examples
javaremote-debuggingtychotycho-surefire-plugin

How can I debug test cases run by Tycho?


When using Tycho to build a project, the test cases are run in a new process using the equinox launcher to run -application org.eclipse.tycho.surefire.osgibooter.headlesstest.

How can I debug the test cases?


Solution

  • There is a much easier way to accomplish this:

    just add -DdebugPort=8000 to your Maven commandline and attach a remote debug session.

    See the docs https://www.eclipse.org/tycho/sitedocs/tycho-surefire-plugin/test-mojo.html#debugPort