简体   繁体   中英

Breakpoints and Logging Not Working At All

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:

  1. Restart Xcode
  2. Restart my computer
  3. Delete the app from my iPhone and rebuild
  4. Clean
  5. Verify my build configuration is "Debug"
  6. Done everything mentioned here
  7. Tried placing a breakpoint in applicationDidFinishLaunching: and that isn't called either.
  8. Verified that there is no #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.

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