Add this to your POM:
<profiles> <profile> <id>debug</id> <build> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-surefire-plugin</artifactId> <version>${tycho-version}</version> <configuration> <argLine>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y</argLine> </configuration> </plugin> </plugins> </build> </profile> </profiles>
Now you can enable debugging using mvn ... -P debug when printing the following line:
Listening to the dt_socket transport at: 8000
See Eclipse for help setting up an IDE .
source share