简体   繁体   中英

How can I edit source lookup path using Mockito

I'm having trouble debugging using mockito due to the impossibility of finding the source when stepping in with the debugger.

It simply won't find the class that is right inside the project.

The scenario is this: I have class A and class Atest is the one using mockito to test class A. Once class Atest is tested, there's a line in class A that calls a method in another class B, but the debugger cannot find the source for class B which is right in the project.

Any suggestions?

Thanks!

As @SureshKoya alludes, most IDEs provide a way at attach the sources for a Java .class file.

Depending on whether B is yours or third-party, and which IDE you're using, this may be fairly easy to fix.

Please provide further problem details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM