Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 applicationDidFinishLaunching 方法中放置了一个 NSLog 语句。我构建并运行并查看日志输出。然后,如果我点击主页按钮(在模拟器中)并重新启动应用程序,我看不到日志输出。
为什么?
因为一旦您点击主页按钮,调试器就不再附加。