I just followed the tutorial on the  bndtools site.
I think they do not explicitly describe debug as it just works like in a non OSGi eclipse project.

You just start the launcher project in debug mode and can work with your break points. One nice thing is that you can simply change source, save and continue debugging in the running session.

The above is also possible in karaf with remote debug and bundle:watch * but less convenient as you have to do a maven build on the changed
projects.


Christian

Am 13.09.2015 um 09:52 schrieb Pedro Domingues:
Is there a tutorial showing how to achieve that with bndtools?

On September 12, 2015 10:01:20 PM WEST, Christian Schneider 
<[email protected]> wrote:
If you only need plain felix then eclipse + bndtools might help.

I just tried the new 3.0.0 version and was able to setup as small
project in quite short time.
It features very nice debug integration.

Apart from this remote debugging always works but is less convenient.

Christian

Am 12.09.2015 um 21:31 schrieb Pedro Domingues:
Hi,

I really need to debug my code by the use of breakpoints, however
this
seems a complex undertaking with an OSGi container.

I have Eclipse and Felix (both the latest). My project is a raw OSGi
project, I am not using PDE, just maven bundle plugin to generate the
bundles and then copy them to the /bundle folder in felix, then I
perform java -jar bin/felix.jar and the project runs. So no fuss
here.
However I cannot debug the application that way. I've tried to read
the docs

(http://felix.apache.org/documentation/development/integrating-felix-with-eclipse.html)

but they are outdated/broken and cant make them work...

How can I debug this? Will I have to avoid using OSGi just because
debug is not supported...? :(

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to