I have some set-up code in viewDidLoad
that is successfully being called. The only problem is that whenever I place a NSLog(@"random")
or a breakpoint in viewDidLoad
, nothing is logged and execution never halts. Here's what I have tried so far to fix it:
applicationDidFinishLaunching:
and that isn't called either. #define NSLog()
If this is relevant at all, this file is Objective-C++. However, breakpoints and logging were working earlier, so I doubt that's the issue.
检查项目设置中的调试和释放标志。
我一时兴起下载了Xcode 7.6 beta,现在无论是在beta中还是在我使用的较旧的Xcode中,断点似乎都可以再次使用。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.