[swift-lldb-dev] Swift LLDB Feature Support

Todd Fiala tfiala at apple.com
Thu Oct 20 09:53:06 CDT 2016


Hi Jessie!

> On Oct 19, 2016, at 6:12 PM, Jessie Serrino via swift-lldb-dev <swift-lldb-dev at swift.org> wrote:
> 
> Hi Swift-LLDB,
> 
> I had something I wanted to follow up on.
> 
> I'm currently working in a mixed development environment (Obj-C & Swift), and we're slowly migrating to Swift. I've managed to connect lldb to a Swift only environment and use REPL to successfully inspect objects without issue. That said, when I connect to my mixed project, it doesn't allow me to import UIKit (see errors below):
> 
> (lldb) repl
> 3> import UIKit
> error: Couldn't lookup symbols:
>   _globalinit_33_FD9A49A256BEB6AF7C48013347ADC3BA_func4
>   _globalinit_33_FD9A49A256BEB6AF7C48013347ADC3BA_token4
>   __TZvOs11CommandLine11_unsafeArgvGSpGSqGSpVs4Int8___
>   __TZvOs11CommandLine5_argcVs5Int32
> 
> I've appropriately set the language to Swift as follows: (lldb) settings set target.language swift
> 
> My suspicion is that there are two UIKits (one in Objective-C and one in Swift). Would you be able to offer me some clarity to resolve this issue?
> 

I have a few bits of info I’d like to gather:

* Which version of Xcode are you using?

* Are you using a custom-built or downloaded toolchain for Swift?  How about LLDB?

* What’s the output when you type “lldb --version” and “swiftc --version”?

* Can you reproduce it in a small project, and send us steps to follow?

Thanks!

-Todd

> Thank you,
> Jessie
> 
> On Thu, Oct 6, 2016 at 10:43 AM, Enrico Granata <egranata at apple.com <mailto:egranata at apple.com>> wrote:
> 
>> On Oct 5, 2016, at 5:01 PM, Jessie Serrino via swift-lldb-dev <swift-lldb-dev at swift.org <mailto:swift-lldb-dev at swift.org>> wrote:
>> 
>> Hi Swift LLDB,
>> 
>> First of all, thanks to some of you for being so responsive!
>> 
>> After playing around a bit with the LLDB build, we had some feature requests for the next version of LLDB.
>> 
>> First and foremost, we’d like to be able to execute multi-line expressions through expression,
>> 
> Good news! This is already possible:
> 
> <PastedGraphic-1.png>
> 
> As for the other features you suggest, I'll let someone who is more in depth with the expression evaluator go into details
> 
>> and create variables in a global context without a $. This is incredibly important, and would enable us (and other developers) to make deeper, more valuable investigations into code while debugging.
>> 
>> In a similar vein, we would like to be able to revert these definitions of expressions in Swift. This would allow us to set the state for certain variables, but also revert our code if anything were to go awry. 
>> 
>> Would it be possible to have some help with this? We're relatively new to the codebase, so we've been having trouble getting things kickstarted on our end.
>> 
>> Thanks again,
>> Jessie (and Rex)
>> 
>> -- 
>> Jessie Serrino
>> iOS Engineer, Remind
>> 
>> _______________________________________________
>> swift-lldb-dev mailing list
>> swift-lldb-dev at swift.org <mailto:swift-lldb-dev at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-lldb-dev <https://lists.swift.org/mailman/listinfo/swift-lldb-dev>
> 
> 
> Thanks,
> - Enrico
> 📩 egranata@.com ☎️ 27683
> 
> 
> _______________________________________________
> swift-lldb-dev mailing list
> swift-lldb-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-lldb-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-lldb-dev/attachments/20161020/f98e1a30/attachment.html>


More information about the swift-lldb-dev mailing list