简体   繁体   English

Xcode 5,单元测试中的断点没有被击中

[英]Xcode 5, breakpoints in unit test not getting hit

This one is driving me nuts. 这个让我发疯。 Xcode 5 recently started to ignore my breakpoints in my unit tests. Xcode 5最近开始在单元测试中忽略我的断点。 I promise this was working before. 我保证这是可行的。 I also promise I have no idea what I changed to cause this behavior, it was working 30 minutes ago and now it is not. 我也保证我不知道我做了什么更改以导致此行为,它在30分钟前起作用,而现在却没有。

I click on the test navigator and click the play button next to one of my tests. 我单击测试导航器,然后单击我的一个测试旁边的播放按钮。 I did not setup anything to get breakpoints to work and they worked by default, somehow they do not work anymore. 我没有设置任何东西来使断点正常工作,并且它们在默认情况下可以工作,以某种方式它们不再起作用。

When I hit the play button the tests run and success but breakpoints are not getting hit. 当我按下“播放”按钮时,测试会运行并成功完成,但断点并没有达到。

power on test: yes I did verify they are active (dark blue). 开机测试:是的,我确实确认它们处于活动状态(深蓝色)。

Ideas? 想法?

Are you sure your tests are being ran? 您确定测试正在运行吗? If you are switching you need to update the "Wrapper Extension" to xctest. 如果要切换,则需要将“包装程序扩展”更新为xctest。 See https://stackoverflow.com/a/21161332/3096507 . 参见https://stackoverflow.com/a/21161332/3096507

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

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