<div dir="ltr">Added a functional test project on a bug here<div><a href="https://bugs.swift.org/browse/SR-2637">https://bugs.swift.org/browse/SR-2637</a></div><div><br></div><div>Hopefully this makes things a bit more clear.<br><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 12, 2016 at 12:13 PM Dmitry Shevchenko &lt;<a href="mailto:dmishe@google.com">dmishe@google.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">My apologies, the url should read <a href="http://bazel.io" class="gmail_msg" target="_blank">http://bazel.io</a>. </div><div dir="ltr" class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Fri, Sep 9, 2016 at 2:04 PM Dmitry Shevchenko &lt;<a href="mailto:dmishe@google.com" class="gmail_msg" target="_blank">dmishe@google.com</a>&gt; wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg">Hello, I would like to ask a couple of implementation questions about LLDB and Swift.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">We are building swift in a custom build system (<a href="http://bazel.org" class="gmail_msg" target="_blank">bazel.org</a>) where we try to use Swift static libraries to compose our programs. In other words, we build multiple Swift targets into a pair of (.a, .switfmodule) and then link static libraries together into the final executable.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">It works pretty well, but there are issues when it comes to debugging. Ideally, we would like to debug with and without dSYM to speedup compilations.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">From reading SwiftASTContext.cpp, it looks like LLDB needs to load the corresponding .swiftmodule to work.</div><div class="gmail_msg">It does so by looking at the AST tag in the symbol table of the executable. </div><div class="gmail_msg">Is this correct, or is there another way that LLDB can find the module?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Additionally, there can only be one such tag, since LLDB reads the first one it finds and stops.</div><div class="gmail_msg">However, if a program is composed from multiple modules, it&#39;s not possible to tell the debugger to load them all. For example, if the app is written mostly in ObjC, but has multiple helper Swift libraries where each has its own module, and those modules do not import each other (so there&#39;s no clear way to say what is the &quot;main&quot; module), how would we tell LLDB to load all of them?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thank you!</div><div class="gmail_msg"><br class="gmail_msg"></div></div></blockquote></div></div></blockquote></div></div></div>