No breakpoints?

966 views
Skip to first unread message

Zach

unread,
Dec 2, 2007, 9:22:39 PM12/2/07
to google-guice
I'm using Guice 1.0, jdk 1.6.0_03 and Eclipse 3.3. I have a class
that gets some parameters injected into its constructor. If I set a
breakpoint anywhere in that class and try to debug my app, Eclipse
gives me the following error:

Unable to install breakpoint in MyClass$$FastClassByGuice$$74057a1c
due to missing line number attributes. Modify compiler options to
generate line number attributes.

I even downloaded the Guice 1.0 source and modified the javac in the
compile target of common.xml to include debug information (debug="on"
debuglevel="lines,vars,source") but I still get the error.

So is it impossible to set breakpoints in, and debug, any classes that
Guice injects into?

Bob Lee

unread,
Dec 2, 2007, 9:30:24 PM12/2/07
to google...@googlegroups.com
I think you can just ignore those errors. It's complaining about a class generated by cglib, not your class.

The cglib folks should be able to shed more light on this.

Bob

Zach Cox

unread,
Dec 2, 2007, 9:44:40 PM12/2/07
to google...@googlegroups.com
Yep that's my bad - I freaked when I saw that error and didn't
continue debugging. All you have to do is check the nice "Don't tell
me this again" box, dismiss the error, and debug away.
Reply all
Reply to author
Forward
0 new messages