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.
我想在某个时候释放所有正在运行的线程以从 UI 线程获取调用堆栈。有这个方法调用吗?
谢谢
如果我没记错的话,你可以在代码的某处设置一个断点,线程就会暂停。在控制台中,您可以执行以下操作: po [NSThread callStackSymbols] 在当前线程上打印堆栈跟踪。