Swift类中所有方法的LLDB断点
如何使用LLDB在Swift类中的所有方法 /计算属性上设置断点?
我的用例是调试执行特定类型方法的流程,但我们也可以将命令用于一般调试/学习。
我发现语法是为所有方法创建一个objective-c类中的LLDB断点在这里,但这似乎对Swift类/结构不起作用。
How can I use LLDB to set a breakpoint on all methods / computed properties in a Swift class?
My use case is to debug the flow of executing a particular type’s methods but we could also use the command for general debugging/learning.
I found the syntax to create an LLDB breakpoint for all methods in an Objective-C class here, but this doesn't seem to work for Swift classes/structs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下语法可用于为Swift类型中的每个符号(属性和方法)创建一个正则断点,包括
struct
s和class
es。假设一种称为
circle
的类型:The following syntax works for creating a Regex breakpoint for every symbol (properties and methods) in a Swift type, including
struct
s andclass
es.Assuming a type called
Circle
: