简体   繁体   English

蚀调试模式断点奇怪的行为

[英]eclipse debug mode break point strange behaviour

I have two projects in my workspace say ProjectA and ProjectB. 我的工作区中有两个项目,分别是ProjectA和ProjectB。 Only project names are different but both projects contain almost the same files. 只有项目名称不同,但是两个项目都包含几乎相同的文件。 When i add breakpoints on a class in ProjectA say at line 152, the control instead of stopping at line 152 of the class in ProjectA, automatically is opening the class of ProjectB and stopping at line 152. I am unable to figure out why it is automatically opening the class of ProjectB and stopping at line 152. 当我在ProjectA中的类上添加断点时,请在第152行说,该控件而不是在ProjectA中的类的第152行处停止,而是自动打开ProjectB的类并在第152行处停止。我无法弄清为什么自动打开ProjectB的类并在第152行停止。

Have a look at Run -> Debug Configurations... -> Source . 看一下Run -> Debug Configurations... -> Source There you define the sources where to look for the source code when debugging a class. 您可以在其中定义调试类时在何处查找源代码的源。 Maybe you have a reference to ProjectB there? 也许在那里您有对ProjectB的引用?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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