ios - 代码 : Is there a way to search string in expressions defined in breakpoints?

标签 ios xcode lldb

我关注了这个tuto关于在 XCode 中调试。我去掉了一些 NSLog 指令,转而使用断点中定义的表达式,并带有自动延续

例如:

expr (void)NSLog(@"Comments %@",data)

过了一会儿,我想搜索打印特定字符串的断点。

我找不到在 XCode 中执行此操作的方法。可能吗?

最佳答案

没有从 UI 执行此操作的好方法。请使用 http://bugreporter.apple.com 提交增强请求对于某种“在断点命令中查找”,这似乎是一件有用的事情。您可以通过在保存用户断点的数据文件中搜索日志文本来解决这个问题,该数据文件位于 xcuserdata/.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist 中的 .xcodeproj 目录中。那应该被视为只读文件,我不会尝试编辑它...

关于ios - 代码 : Is there a way to search string in expressions defined in breakpoints?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32099375/

相关文章:

iphone - 如何将 titleForHeaderInSection 的文本设置为 AlignmentCenter

iphone - 对齐 UICollectionView 的最后一行

ios - 这个应用程序是使用 iOS SDK 构建的。提交到 App Store 的所有 iOS 应用必须使用 iOS 13 SDK 或更高版本构建

objective-c - XCode 在断点处多次停止

ios - deselectRowAtIndexPath 什么都不做

ios - 我需要购买 SSL 证书才能通过 heroku 服务器和 iOS 应用程序使用。我到底需要什么?

ios - Objective-C 中的警告 "Method definition not found"。从类别文件调用方法

iphone - 状态栏出现在 Tableview 的顶部

swift - 使用 LLDB 时如何修复错误 "Cannot create Swift scratch context"

swift - 在协议(protocol)方法上设置断点