简体   繁体   English

调试Junit时在Eclipse中没有断点

[英]Breakpoints not hit in Eclipse when debug Junit

My breakpoints aren't being hit when I try to debug a Junit test in Eclipse. 当我尝试在Eclipse中调试Junit测试时,没有遇到断点。 Is there some trick I am missing? 我缺少一些技巧吗? Does anyone have any ideas? 有人有什么想法吗?

Okay it is resolved. 好的,解决了。 The Junit test was being injected into a jboss server running in the Eclipse IDE. 将Junit测试注入到在Eclipse IDE中运行的jboss服务器中。 The Junit test is injected into the jboss server through the use of Arquillian. 通过使用Arquillian,将Junit测试注入到jboss服务器中。 The reason the Junit test was skipping the breakpoints was because the jboss server also had to be started in debug mode. Junit测试跳过断点的原因是因为jboss服务器也必须以调试模式启动。 I restarted jboss in debug mode and ran the junit test again. 我以调试模式重新启动了jboss并再次运行了junit测试。 This time, the break points are hit. 这次,突破点被击中。

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

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