简体   繁体   中英

Eclipse debugger cannot find source when breakpoint is in parent class

When my breakpoint is set in an ancestor class, the Eclipse debugger stops at the correct breakpoint, but displays the "Source not found" error. The title of the window, instead of showing the class name like normal, has the full ConcreteClass(ParentClass) name, including the parentheses. This is the same string that shows in the debug window containing the executing stack.

So, no wonder it can't find that class. But why is it doing that?

For instance, in the source tab, the title it says it is looking for says: TransferOfFundsAction(DocumentActionBase)

where DocumentActionBase is the class with the breakpoint, and TransferOfFundsAction is the child class being executed.

我在Eclipse 4.4.1中遇到了相同的问题,可以通过在“调试配置”中定义“项目”并将其设置为定义了所需的源或库引用的当前项目,来解决该问题。

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