start tests in remote debugging mode (just specify -DdebugPort=8000 in the CLI) and start the OSGi console on the local port, for example. 1234:
<plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-surefire-plugin</artifactId> <version>${tycho-version}</version> <configuration> <systemProperties> <osgi.console>1234</osgi.console> </systemProperties> </configuration> </plugin>
Set a breakpoint in one of your test classes or in org / eclipse / tycho / surefire / osgibooter / OsgiSurefireBooter if tests have not already started. Then,
telnet localhost 1234
and you can use regular OSGi console commands, such as ss, diag, bundle , etc., to analyze the "in vivo" problem.
jsievers
source share