views:

42

answers:

1

I've got JUnit tests that run just fine. Added Mockito to my build and I try to put a breakpoint in my JUnit test that uses Mockito to mock out some of the public methods. When I try to run the debugger on the class, I get the error "unable to install breakpoint in XXX due to missing line number attributes. Modify compiler options to generate line number attributes." I checked my compiler and I generate line numbers is selected.

A: 

If it only happens when you use Mockito, then maybe it's because Mockito was compiled without debugger support?

Also, check that you have the same compiler settings for your test classes as for your regular code.

Mike Baranczak