I’ve the newest xcode-kotlin plugin set up on my XCODE model 15.4. (By the way in which, the newest model of the xcode-kotlin plugin put in on XCODE 15.4 utilizing brew with no extra set up workarounds wanted as described within the set up process!) Utilizing the Xcode-kotlin plugin is actually an enormous large assist. Setting breakpoints and stepping by the code works nice. The issue is that I am not in a position to view the contents of body variables saved in iosMain. For instance, in my iosMain, I’ve the next variable outlined within the implementation of iOS precise class:
var pathUrl: NSURL?
The variable is about within the constructor for that class:
precise constructor(pathname: String) {
pathUrl = NSURL.URLWithString(pathname)
}
I will step by the code and break at that line. The issue is that I can not view the worth of “pathURL.path” from lldb. From the lldb console, I can do the next:
(lldb) body variable _this->pathUrl
(ObjHeader *) _this->pathUrl = []
That is nice and dandy, however I wish to see the worth of the trail for that variable. I’ve tried quite a few methods coerce that variable to be a (NSURL *), however I’ve not discovered anyway to efficiently try this. On this context, NSURL is from Kotlin “platform.Basis”. My understanding is that it is a Kotlin wrapper class for Apples NSURL class. I’ve no drawback seeing variables similar to “pathname” which come from the stack. Please be aware that I clearly know what I am setting the trail to; I am simply utilizing this for example and my actual drawback is that I can not seem to see the worth of body variables contained within the shared “iosMain” if that body variable is a “platform.Basis” class. Additionally be aware, I attempted to view pathUrl.path after its worth was set within the constructor. I additionally couldn’t view the contents of pathUrl later in one other methodology wherein I used to be referencing pathUrl.
At the moment, I believe that this is because of a limitation of the Xcode-kotlin plugin as a result of it would not have sufficient details about the “platform.Basis” symbols. So the elemental query I am asking boils right down to this:
1.) Is there a approach for me to view the contents of this body variable utilizing lldb?, or
2.) Is there a approach for me to let Xcode-kotlin plugin find out about "platform.Basis" symbols?