I would like to call dump method in the LLDB while using Debug View Hierarchy.
Select element (for instance View controller) -> open Object Inspector -> get the address and execute dump in lldb.
po 0x7fc1fd8301a0
works with object description as expected
e -l swift -O -- dump(0x7fc1fd8301a0)
or with `` doesnt work
I have tried t o create and extension for my object:
@objc public class DumpTree: NSObject {
}
public extension DumpTree {
@objc class func apple(_ value: Any?) {
dump(value);
}
}
po [DumpTree apple:0x7fc1fd8301a0]
I get the following error:
error: expression failed to parse: error: Error [IRForTarget]: Couldn't resolve the class for an Objective-C static method call
Xcode 14.0.1
Thanks