Bug hunting with AOP and Eclipse
Today I stumbled across an Eclipse Plugin called Bugdel. Bugdel provides an Aspect Weaver to include debugging code into your existing Java applications. This results in a clear separation of debugging/logging code and real application logic which is generally regarded to be a Good Thing ™.
Bugdel supports the common set of points to weave aspects into as method calls, method executions, field getting and settings etc. It’s also possible to weave aspects to line numbers. Bugdel supports wildcards in method and class names so you can easily weave certain debugging aspects to a lot of methods.
What looks really good is the integration into Eclipse. Bugdel provides an own Editor to Eclipse (based on the standard Java editor) where you can easily add the “pointcuts” (Bugdel term for AOP join points).
I have to look into this to find out whether the Bugdel pointcuts can only be used from within Eclipse. It would be great if they could also be compiled into the app using Ant or something similar.
Bugdel is distributed under the terms of the CPL (IBMs OpenSource license). I only took a glimpse at the CPL but it looks kind of strange to me. I’ll read some more on it.
(via Eclipse Plugins)