I’m using the following version of Eclipse/STS:
我正在使用以下版本的Eclipse / STS:
Version: 3.7.0.RELEASE
Build Id: 201506290652
Platform: Eclipse Mars (4.5.0)
In my editor, when I double click on a line number to create a breakpoint, the green breakpoint circle appears but with a slash through it. Incidentally, I have noticed that when I run a JUnit test in Eclipse (by right clicking on the test name, selecting “Debug As” -> “JUnit Test”), execution never halts on that breakpoint. I assume the two things are connected. How do I create breakpoints that will actually halt execution in my JUnit test?
在我的编辑器中,当我双击一个行号以创建一个断点时,会出现绿色断点圆圈,但是会有一个斜线。顺便提一下,我注意到当我在Eclipse中运行JUnit测试时(通过右键单击测试名称,选择“Debug As” - >“JUnit Test”),执行永远不会在该断点上停止。我假设这两件事是相互关联的。如何在JUnit测试中创建实际停止执行的断点?