<div dir="ltr">Hi Swift-LLDB,<div><br></div><div><div>I had something I wanted to follow up on.</div><div><br></div><div>I&#39;m currently working in a mixed development environment (Obj-C &amp; Swift), and we&#39;re slowly migrating to Swift. I&#39;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&#39;t allow me to import UIKit (see errors below):</div><div><br></div><div><font face="monospace, monospace">(lldb) repl</font></div><div><font face="monospace, monospace">3&gt; import UIKit</font></div><div><font face="monospace, monospace">error: Couldn&#39;t lookup symbols:</font></div><div><font face="monospace, monospace">  _globalinit_33_FD9A49A256BEB6AF7C48013347ADC3BA_func4</font></div><div><font face="monospace, monospace">  _globalinit_33_FD9A49A256BEB6AF7C48013347ADC3BA_token4</font></div><div><font face="monospace, monospace">  __TZvOs11CommandLine11_unsafeArgvGSpGSqGSpVs4Int8___</font></div><div><font face="monospace, monospace">  __TZvOs11CommandLine5_argcVs5Int32</font></div><div><br></div><div>I&#39;ve appropriately set the language to Swift as follows:<font face="monospace, monospace"> (lldb) settings set target.language swift</font></div><div><br></div><div>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><br></div><div>Thank you,</div><div>Jessie</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 10:43 AM, Enrico Granata <span dir="ltr">&lt;<a href="mailto:egranata@apple.com" target="_blank">egranata@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><span class=""><div>On Oct 5, 2016, at 5:01 PM, Jessie Serrino via swift-lldb-dev &lt;<a href="mailto:swift-lldb-dev@swift.org" target="_blank">swift-lldb-dev@swift.org</a>&gt; wrote:</div><br class="m_187002738993549028Apple-interchange-newline"></span><span class=""><div><div dir="ltr"><p class="m_187002738993549028gmail-p1"><font size="2">Hi Swift LLDB,</font></p><p class="m_187002738993549028gmail-p1"><font size="2">First of all, thanks to some of you for being so responsive!</font></p><p class="m_187002738993549028gmail-p1"><font size="2">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">First and foremost, we’d like to be able to execute multi-line expressions through <font face="monospace, monospace"><b>expression</b></font>,</font></p></div></div></span></blockquote><div>Good news! This is already possible:</div><div><br></div><div><img id="m_187002738993549028CF275FAE-DC82-4A90-9455-913063E16011" height="480" width="640" src="cid:0D8833C0-8EFC-4B91-B091-4332BFB875ED@apple.com"></div><div><br></div><div>As for the other features you suggest, I&#39;ll let someone who is more in depth with the expression evaluator go into details</div><div><br></div><blockquote type="cite"><div><span class=""><div dir="ltr"><p class="m_187002738993549028gmail-p1"><font size="2"> and create variables in a global context without a <b><font face="monospace, monospace">$</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">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">Would it be possible to have some help with this? We&#39;re relatively new to the codebase, so we&#39;ve been having trouble getting things kickstarted on our end.</font></p><p class="m_187002738993549028gmail-p1"><span style="font-size:small">Thanks again,<br></span><span style="font-size:small">Jessie (and Rex)</span></p><p class="m_187002738993549028gmail-p1"><font size="2">-- <br></font><span style="font-size:small">Jessie Serrino<br></span><span style="font-size:small">iOS Engineer, Remind</span></p></div></span>
______________________________<wbr>_________________<span class=""><br>swift-lldb-dev mailing list<br><a href="mailto:swift-lldb-dev@swift.org" target="_blank">swift-lldb-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-lldb-dev" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-lldb-<wbr>dev</a><br></span></div></blockquote></div><br><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant: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"><br class="m_187002738993549028Apple-interchange-newline">Thanks,</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant: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"><i>- Enrico</i><br>📩 egranata@<font color="#ff2600"></font>.com ☎️ 27683</div>
</div>
<br></div></blockquote></div><br></div>