相关疑难解决方法(0)

为什么LLDB无法打印view.bounds?

这样的事情在调试时让我发疯:

(lldb) p self.bounds
error: unsupported expression with unknown type
error: unsupported expression with unknown type
error: 2 errors parsing expression
(lldb) p (CGRect)self.bounds
error: unsupported expression with unknown type
error: unsupported expression with unknown type
error: C-style cast from '<unknown type>' to 'CGRect' is not allowed
error: 3 errors parsing expression
(lldb) p [self bounds]
error: 'bounds' has unknown return type; cast the call to its declared return type
error: 1 errors parsing expression
(lldb) p (CGRect)[self bounds]
(CGRect) …
Run Code Online (Sandbox Code Playgroud)

objective-c lldb

53
推荐指数
5
解决办法
1万
查看次数

标签 统计

lldb ×1

objective-c ×1