<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Jessie!<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 19, 2016, at 6:12 PM, Jessie Serrino via swift-lldb-dev <<a href="mailto:swift-lldb-dev@swift.org" class="">swift-lldb-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Swift-LLDB,<div class=""><br class=""></div><div class=""><div class="">I had something I wanted to follow up on.</div><div class=""><br class=""></div><div class="">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):</div><div class=""><br class=""></div><div class=""><font face="monospace, monospace" class="">(lldb) repl</font></div><div class=""><font face="monospace, monospace" class="">3> import UIKit</font></div><div class=""><font face="monospace, monospace" class="">error: Couldn't lookup symbols:</font></div><div class=""><font face="monospace, monospace" class=""> _globalinit_33_FD9A49A256BEB6AF7C48013347ADC3BA_func4</font></div><div class=""><font face="monospace, monospace" class=""> _globalinit_33_FD9A49A256BEB6AF7C48013347ADC3BA_token4</font></div><div class=""><font face="monospace, monospace" class=""> __TZvOs11CommandLine11_unsafeArgvGSpGSqGSpVs4Int8___</font></div><div class=""><font face="monospace, monospace" class=""> __TZvOs11CommandLine5_argcVs5Int32</font></div><div class=""><br class=""></div><div class="">I've appropriately set the language to Swift as follows:<font face="monospace, monospace" class=""> (lldb) settings set target.language swift</font></div><div class=""><br class=""></div><div class="">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?</div><div class=""><br class=""></div></div></div></div></blockquote><div><br class=""></div><div>I have a few bits of info I’d like to gather:</div><div><br class=""></div><div>* Which version of Xcode are you using?</div><div><br class=""></div><div>* Are you using a custom-built or downloaded toolchain for Swift? How about LLDB?</div><div><br class=""></div><div>* What’s the output when you type “lldb --version” and “swiftc --version”?</div><div><br class=""></div><div>* Can you reproduce it in a small project, and send us steps to follow?</div><div><br class=""></div><div>Thanks!</div><div><br class=""></div><div>-Todd</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class="">Thank you,</div><div class="">Jessie</div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Oct 6, 2016 at 10:43 AM, Enrico Granata <span dir="ltr" class=""><<a href="mailto:egranata@apple.com" target="_blank" class="">egranata@apple.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><br class=""><div class=""><blockquote type="cite" class=""><span class=""><div class="">On Oct 5, 2016, at 5:01 PM, Jessie Serrino via swift-lldb-dev <<a href="mailto:swift-lldb-dev@swift.org" target="_blank" class="">swift-lldb-dev@swift.org</a>> wrote:</div><br class="m_187002738993549028Apple-interchange-newline"></span><span class=""><div class=""><div dir="ltr" class=""><p class="m_187002738993549028gmail-p1"><font size="2" class="">Hi Swift LLDB,</font></p><p class="m_187002738993549028gmail-p1"><font size="2" class="">First of all, thanks to some of you for being so responsive!</font></p><p class="m_187002738993549028gmail-p1"><font size="2" class="">After playing around a bit with the LLDB build, we had some feature requests for the next version of LLDB.</font></p><p class="m_187002738993549028gmail-p1"><font size="2" class="">First and foremost, we’d like to be able to execute multi-line expressions through <font face="monospace, monospace" class=""><b class="">expression</b></font>,</font></p></div></div></span></blockquote><div class="">Good news! This is already possible:</div><div class=""><br class=""></div><div class=""><span id="cid:0D8833C0-8EFC-4B91-B091-4332BFB875ED@apple.com"><PastedGraphic-1.png></span></div><div class=""><br class=""></div><div class="">As for the other features you suggest, I'll let someone who is more in depth with the expression evaluator go into details</div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><span class=""><div dir="ltr" class=""><p class="m_187002738993549028gmail-p1"><font size="2" class=""> and create variables in a global context without a <b class=""><font face="monospace, monospace" class="">$</font></b>. This is incredibly important, and would enable us (and other developers) to make deeper, more valuable investigations into code while debugging.</font></p><p class="m_187002738993549028gmail-p1"><font size="2" class="">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. </font></p><p class="m_187002738993549028gmail-p1"><font size="2" class="">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.</font></p><p class="m_187002738993549028gmail-p1"><span style="font-size:small" class="">Thanks again,<br class=""></span><span style="font-size:small" class="">Jessie (and Rex)</span></p><p class="m_187002738993549028gmail-p1"><font size="2" class="">-- <br class=""></font><span style="font-size:small" class="">Jessie Serrino<br class=""></span><span style="font-size:small" class="">iOS Engineer, Remind</span></p></div></span>
______________________________<wbr class="">_________________<span class=""><br class="">swift-lldb-dev mailing list<br class=""><a href="mailto:swift-lldb-dev@swift.org" target="_blank" class="">swift-lldb-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-lldb-dev" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-lldb-<wbr class="">dev</a><br class=""></span></div></blockquote></div><br class=""><div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><br class="m_187002738993549028Apple-interchange-newline">Thanks,</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><i class="">- Enrico</i><br class="">📩 egranata@<font color="#ff2600" class=""></font>.com ☎️ 27683</div>
</div>
<br class=""></div></blockquote></div><br class=""></div>
_______________________________________________<br class="">swift-lldb-dev mailing list<br class=""><a href="mailto:swift-lldb-dev@swift.org" class="">swift-lldb-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-lldb-dev<br class=""></div></blockquote></div><br class=""></div></body></html>