简体   繁体   English

Eclipse调试器无法识别新的Java代码

[英]Eclipse debugger does not recognize new java code

I have added new method to my javacode and put breakpoint at the begin of this method and different places. 我已经为我的javacode添加了新方法,并在此方法的开头和不同的地方放置了断点。 Eclipse debugger go throw the breakpoints in the old code but not in the new added method. Eclipse调试器会在旧代码中抛出断点,但不会在新添加的方法中抛出断点。 I have cleared my project project-> clear to exclude the cache possibility. 我已经清除了我的项目项目 - >清除以排除缓存可能性。 for me, it appears that eclipse dont recognize the new added Java code. 对我来说,似乎eclipse不会识别新添加的Java代码。

Any Idea what could be the problem? 任何想法可能是什么问题? I use eclipse Juno Service Release 2. 我使用eclipse Juno Service Release 2。

You need to stop debugging and start the program again since the signature has changed. 由于签名已更改,您需要停止调试并再次启动程序。 If you want more hot-swap possibilities you need to consider using JRebel or similar tool. 如果您需要更多热插拔功能,则需要考虑使用JRebel或类似工具。

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

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