Xcode单元测试:Xcode不会在断点处停止 [英] Xcode Unit Tests: Xcode doesn't stop at breakpoints

查看:225
本文介绍了Xcode单元测试:Xcode不会在断点处停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Xcode 6.3 Beta 2与单元测试我有以下问题:

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.

任何想法?

推荐答案

即使这篇文章很旧,简单点检查:您的Test-Method是否以前缀test开头?

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

省略前缀不会产生一个警告,Xcode根本不会执行该方法。

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

这可能看起来像Xcode不会在你的断点停止 - 但是Xcode不执行所有方法!

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

这篇关于Xcode单元测试:Xcode不会在断点处停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆