Xcode Unit Tests: Xcode doesn't stop at breakpoints

末鹿安然 提交于 2020-01-13 07:54:08

问题


Using Xcode 6.3 Beta 2 with Units Tests I have the following problem:

When I do unit testing the breakpoints in the unit-test module work but the break codes in the code under test don't are ignored.

Any ideas?


回答1:


I had the same issue and the reason was the scheme settings:

1.- Edit your scheme

2.- Choose "Test" in the left panel

3.- Check the "Debug executable" option

That was all.




回答2:


Simple point to check even if this post is quite old: Does your Test-Method start with the prefix "test"?

Omitting the prefix doesn't produce a warning and Xcode simply doesn't execute the method any more.

This can look like Xcode doesn't stop at your breakpoint - nevertheless Xcode doesn't execute the method at all!



来源:https://stackoverflow.com/questions/28962166/xcode-unit-tests-xcode-doesnt-stop-at-breakpoints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!