I finally managed to get to the OSGi console by starting the tycho test in remote debugging mode. However, unlike the above solution, I had to use the following configuration:
<argLine>-ea -Dosgi.clean=true -Ddebug=true -Dosgi.console.enable.builtin=true</argLine> <appArgLine>-console 1234 -noExit</appArgLine>
source share