Hi Again,

Is it possible in an itest to debug into the inner karaf runtime?

To try and debug into the "listBundleCommand" test in the Karaf Itest example I 
tried

1. Set breakpoint on "String httpPort = ..." in the "public Option[] config()" 
method in the itest
   code.
2. Set breakpoint at first line  in "listBundleCommand" test.
3. Set a remote configuration in Intellij with port 5005.
4. start karaf with bin/karaf debug.
5. console displays "Listening for transport dt at address: 5005
6. Karaf starts up with branding and prompt.
7. Shift-F9 in intellij starts a debug session.
8. Debug console displays "Connected to the target VM, address: 
'localhost:5005", transport: 'socket'
9. Run test (debug)
10. Debugger stops at breakpoint '1' above.
11. Does not stop at breakpoint '2' above.
12. "listBundleCommand" test runs to completion and output as expected.

If it can be done, what am I missing?

Paul Fraser









Reply via email to