PDA

View Full Version : Cglib debugging



rafik777
Sep 11th, 2007, 02:48 PM
I use spring AOP (v2.0) and I have a problem with debugging aspect target classes.
When I try debugging these classes I get this message from eclipse:

"Unable to install breakpoint in pack.Account$$EnhancerByCGLIB$$c7f2c4f0
due to missing line number attributes. Modify compiler options to generate
line number attributes.

Reason:
Absent Line Number Information
"

How I do that?

Jörg Heinicke
Sep 11th, 2007, 03:03 PM
Why do you want to debug the proxy itself? You don't have the sources for them, so it seems pretty much useless anyway. You can set the break point in the proxied class.

Joerg

rafik777
Sep 13th, 2007, 02:29 PM
Because it is traditional way of debugging application.
In aspectJ i can do that.

Jörg Heinicke
Sep 14th, 2007, 12:03 AM
Because it is traditional way of debugging application. In aspectJ i can do that.

But AspectJ is different. It is not proxy-based, but modifies the actual class.

You really don't want to debug the proxy, but only the proxied class. Therefore you can just set breakpoints in your normal class.

Joerg