# LLDB

**URL:** https://forums.swift.org/c/development/lldb/13.md?page=2

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

**Page:** 3

---

## [Using LLDB with iOS Simulator from CLI](https://forums.swift.org/t/using-lldb-with-ios-simulator-from-cli/33990)

<div class="topic-metadata">

**Author:** [@beefon](https://forums.swift.org/u/beefon)\
**Replies:** 7\
**Last updated:** [July 21, 2020, 1:49pm UTC](https://forums.swift.org/t/using-lldb-with-ios-simulator-from-cli/33990 "2020-07-21T13:49:01Z")

</div>

I've attempted to run lldb from a shell and select an already booted & running simulator, but lldb can't "see" it: $ xcrun lldb # or simply \`lldb\` (lldb) platform select ios-simulator Platform: ios-simulator Tripl…

---

## [GSOC Linux debugger support progress report](https://forums.swift.org/t/gsoc-linux-debugger-support-progress-report/36382)

<div class="topic-metadata">

**Author:** [@augusto2112](https://forums.swift.org/u/augusto2112)\
**Replies:** 11\
**Last updated:** [June 29, 2020, 11:04pm UTC](https://forums.swift.org/t/gsoc-linux-debugger-support-progress-report/36382 "2020-06-29T23:04:03Z")

</div>

I'm working on the GSOC project Improving Swift’s Debugger experience on Linux, with my mentors @Adrian\_Prantl and @vedantk. For this project, as suggested by @Adrian\_Prantl, I intend to post a weekly progress report ev…

---

## [Trying to solve Alamofire's lldb woes](https://forums.swift.org/t/trying-to-solve-alamofires-lldb-woes/34801)

<div class="topic-metadata">

**Author:** [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Replies:** 17\
**Last updated:** [June 26, 2020, 12:02am UTC](https://forums.swift.org/t/trying-to-solve-alamofires-lldb-woes/34801 "2020-06-26T00:02:10Z")

</div>

For years now lldb has been unable to print Alamofire's \*Response type in completion handlers, even when other values in other completion handlers are okay. Naturally this makes debugging while developing Alamofire quite…

---

## [SwiftReflectionTest small differences between platforms](https://forums.swift.org/t/swiftreflectiontest-small-differences-between-platforms/37615)

<div class="topic-metadata">

**Author:** [@augusto2112](https://forums.swift.org/u/augusto2112)\
**Replies:** 3\
**Last updated:** [June 16, 2020, 12:08am UTC](https://forums.swift.org/t/swiftreflectiontest-small-differences-between-platforms/37615 "2020-06-16T00:08:21Z")

</div>

@vedantk @Adrian\_Prantl @Joe\_Groff @Slava\_Pestov @Mike\_Ash @dcci Hi everyone! This is a followup to Adapting SwiftReflectionTest to work on Linux. Right now, I got SwiftReflectionTest to output metadata values for our…

---

## [Adapting SwiftReflectionTest to work on Linux](https://forums.swift.org/t/adapting-swiftreflectiontest-to-work-on-linux/36405)

<div class="topic-metadata">

**Author:** [@augusto2112](https://forums.swift.org/u/augusto2112)\
**Replies:** 27\
**Last updated:** [June 12, 2020, 5:38pm UTC](https://forums.swift.org/t/adapting-swiftreflectiontest-to-work-on-linux/36405 "2020-06-12T17:38:15Z")

</div>

@Adrian\_Prantl @vedantk as a first step in enabling the reflect\_UInt16, I'll need to adapt SwiftReflectionTest to Linux. SwiftReflectionTest depends on MachO and Darwin. Right now, I'm thinking that in order to make th…

---

## [Attaching debugger to test using llvm-lit](https://forums.swift.org/t/attaching-debugger-to-test-using-llvm-lit/36228)

<div class="topic-metadata">

**Author:** [@augusto2112](https://forums.swift.org/u/augusto2112)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 5:37pm UTC](https://forums.swift.org/t/attaching-debugger-to-test-using-llvm-lit/36228 "2020-05-07T17:37:24Z")

</div>

How can I attach to a test launched by llvm-lit? For example, running bin/llvm-lit test --filter TestSwiftLetInt -D dotest-args='-d' starts the test in a paused state, but I can't find in the running processes the one c…

---

## [Improving swift-lldb support for Path Remappings](https://forums.swift.org/t/improving-swift-lldb-support-for-path-remappings/22694)

<div class="topic-metadata">

**Author:** [@DavidGoldman](https://forums.swift.org/u/DavidGoldman)\
**Replies:** 8\
**Last updated:** [May 4, 2020, 6:51pm UTC](https://forums.swift.org/t/improving-swift-lldb-support-for-path-remappings/22694 "2020-05-04T18:51:19Z")

</div>

Background: Xcode assumes absolute paths for everything, which makes it particularly inflexible for distributed and portable builds. Bazel makes use of relative paths from a single execution root, meaning it may embed …

---

## [Are you using LLDB on Linux and if not why?](https://forums.swift.org/t/are-you-using-lldb-on-linux-and-if-not-why/35672)

<div class="topic-metadata">

**Author:** [@LennoxConner](https://forums.swift.org/u/LennoxConner)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 4:26pm UTC](https://forums.swift.org/t/are-you-using-lldb-on-linux-and-if-not-why/35672 "2020-04-24T16:26:50Z")

</div>

Have you tried using LLDB as an alternative to GDB on Linux? Did you stop using it because it's missing some critical feature you can't live without? I'm mostly interested in hearing from people that used the debugger f…

---

## [\[Reslove\]Lldb collect log error](https://forums.swift.org/t/reslove-lldb-collect-log-error/35548)

<div class="topic-metadata">

**Author:** [@Kila2](https://forums.swift.org/u/Kila2)\
**Replies:** 0\
**Last updated:** [April 21, 2020, 7:21am UTC](https://forums.swift.org/t/reslove-lldb-collect-log-error/35548 "2020-04-21T07:21:25Z")

</div>

When I use the following code to collect logs. When using Xcode to run the app for the first time, one log will be collected, then two logs will be collected for the second time, and three logs will be received for the …

---

## [\[GsoC\] Swift debugging support on Linux](https://forums.swift.org/t/gsoc-swift-debugging-support-on-linux/34166)

<div class="topic-metadata">

**Author:** [@kostasch](https://forums.swift.org/u/kostasch)\
**Replies:** 22\
**Last updated:** [March 30, 2020, 5:07pm UTC](https://forums.swift.org/t/gsoc-swift-debugging-support-on-linux/34166 "2020-03-30T17:07:03Z")

</div>

Greetings, I am a Computer Science student at National and Kapodistrian University of Athens, and I would like to be a part of this year's GsoC program. During my academic career, I have only used Linux as my OS and on…

---

## [Crash when a swift's type pointer is null](https://forums.swift.org/t/crash-when-a-swifts-type-pointer-is-null/34875)

<div class="topic-metadata">

**Author:** [@augusto2112](https://forums.swift.org/u/augusto2112)\
**Replies:** 9\
**Last updated:** [March 28, 2020, 12:26am UTC](https://forums.swift.org/t/crash-when-a-swifts-type-pointer-is-null/34875 "2020-03-28T00:26:49Z")

</div>

Hi @Adrian\_Prantl, @dcci and @Slava\_Pestov. I took a look at this bug, and found the culprit. So the reason LLDB is crashing is because of a null pointer. At SwiftUserExpression::ScanContext, we have a dyn\_cast of null: …

---

## [Arrow-up does not bring the previous line up in Xcode 11.4 beta](https://forums.swift.org/t/arrow-up-does-not-bring-the-previous-line-up-in-xcode-11-4-beta/33791)

<div class="topic-metadata">

**Author:** [@braver](https://forums.swift.org/u/braver)\
**Replies:** 5\
**Last updated:** [February 13, 2020, 10:27pm UTC](https://forums.swift.org/t/arrow-up-does-not-bring-the-previous-line-up-in-xcode-11-4-beta/33791 "2020-02-13T22:27:44Z")

</div>

I've downloaded Xcode 11.4 beta to try Swift 5.2 and pointed xcode-select -s to it. I got a working Swift 5.2 REPL except for the history is not working properly with arrow up/down, up arrow fails to work and the down o…

---

## [Building lldb swig bindings](https://forums.swift.org/t/building-lldb-swig-bindings/33753)

<div class="topic-metadata">

**Author:** [@marcrasi](https://forums.swift.org/u/marcrasi)\
**Replies:** 1\
**Last updated:** [February 12, 2020, 8:51pm UTC](https://forums.swift.org/t/building-lldb-swig-bindings/33753 "2020-02-12T20:51:05Z")

</div>

I want to make some changes to the SBAPI and build lldb with those changes. If I build Swift using this command on Linux: ./swift/utils/build-script --release --assertions --lldb --extra-cmake-options=-DLLDB\_USE\_STATIC\_…

---

## [LLDB broken in Swift 5.2 development snapshots](https://forums.swift.org/t/lldb-broken-in-swift-5-2-development-snapshots/32597)

<div class="topic-metadata">

**Author:** [@dylansturg](https://forums.swift.org/u/dylansturg)\
**Replies:** 6\
**Last updated:** [January 15, 2020, 7:10pm UTC](https://forums.swift.org/t/lldb-broken-in-swift-5-2-development-snapshots/32597 "2020-01-15T19:10:46Z")

</div>

I checked a few recent Swift 5.2 development snapshots from swift.org/downloads (specifically January 13, January 11, and January 6 2020). In every snapshot, I receive the same error when I try to launch LLDB: dyld: Li…

---

## [Generating Xcode project for swift-lldb with llvm monorepo](https://forums.swift.org/t/generating-xcode-project-for-swift-lldb-with-llvm-monorepo/30535)

<div class="topic-metadata">

**Author:** [@ivhernandez](https://forums.swift.org/u/ivhernandez)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 4:42pm UTC](https://forums.swift.org/t/generating-xcode-project-for-swift-lldb-with-llvm-monorepo/30535 "2019-11-07T16:42:05Z")

</div>

How should one go about generating an Xcode project for swift-lldb using the monorepo? I was using the old swift-lldb repo on the swift-5.0-branch (which had a Xcode project checked in already) and decided to try out th…

---

## [C++ API on macOS 10.13.5 for LLDB](https://forums.swift.org/t/c-api-on-macos-10-13-5-for-lldb/14222)

<div class="topic-metadata">

**Author:** [@scottdensmore](https://forums.swift.org/u/scottdensmore)\
**Replies:** 2\
**Last updated:** [October 9, 2019, 3:28pm UTC](https://forums.swift.org/t/c-api-on-macos-10-13-5-for-lldb/14222 "2019-10-09T15:28:12Z")

</div>

I am trying to build a command line tool that uses LLDB and I am looking for the API headers and library. Is this distributed with Xcode and tools? If so where would I find the lib and headers to link?

---

## [Debug local stack frame variables fails - Failed to get module 'Builtin' from AST context](https://forums.swift.org/t/debug-local-stack-frame-variables-fails-failed-to-get-module-builtin-from-ast-context/19171)

<div class="topic-metadata">

**Author:** [@david-sysapps-liu](https://forums.swift.org/u/david-sysapps-liu)\
**Replies:** 27\
**Last updated:** [September 24, 2019, 6:43pm UTC](https://forums.swift.org/t/debug-local-stack-frame-variables-fails-failed-to-get-module-builtin-from-ast-context/19171 "2019-09-24T18:43:46Z")

</div>

Hi all was wondering if it was something I am doing wrong and if this issue affects me only and should I create a Jira ticket from this? During debugging sessions either in Xcode or from LLDB(REPL) in Terminal I get the…

---

## [Xcode could not resolve type from dSYM if build folder is different](https://forums.swift.org/t/xcode-could-not-resolve-type-from-dsym-if-build-folder-is-different/24506)

<div class="topic-metadata">

**Author:** [@CognitiveDisson](https://forums.swift.org/u/CognitiveDisson)\
**Replies:** 30\
**Last updated:** [September 17, 2019, 9:23pm UTC](https://forums.swift.org/t/xcode-could-not-resolve-type-from-dsym-if-build-folder-is-different/24506 "2019-09-17T21:23:06Z")

</div>

Problem: The problem is that the debugger does not see the types from the context. Debug panel does not display types, only names. At the same time, breakpoint work, dSYM loaded (did it by hand - add-dsym ) and symbol…

---

## [New LLDB test case failures for Swift 5.1 toolchain](https://forums.swift.org/t/new-lldb-test-case-failures-for-swift-5-1-toolchain/26064)

<div class="topic-metadata">

**Author:** [@stamba](https://forums.swift.org/u/stamba)\
**Replies:** 3\
**Last updated:** [September 17, 2019, 3:38pm UTC](https://forums.swift.org/t/new-lldb-test-case-failures-for-swift-5-1-toolchain/26064 "2019-09-17T15:38:53Z")

</div>

Following 3 LLDB tests are failing with the latest swift 5.1 toolchain on ppc64le - ubuntu 16.04:- Failing Tests (3): lldb-Suite :: lang/swift/metatype/TestSwiftMetatype.py lldb-Suite :: lang/swift/swift\_reference\_cou…

---

## [Debugging sourcekit-lsp using LLDB](https://forums.swift.org/t/debugging-sourcekit-lsp-using-lldb/28328)

<div class="topic-metadata">

**Author:** [@rabingaire](https://forums.swift.org/u/rabingaire)\
**Replies:** 13\
**Last updated:** [August 28, 2019, 7:46pm UTC](https://forums.swift.org/t/debugging-sourcekit-lsp-using-lldb/28328 "2019-08-28T19:46:27Z")

</div>

I have been trying to debug sourcekit-lsp using lldb, I have set breakpoints on Xcode and attached Xcode debugger with sourcekit-lsp process, code pauses on breakpoints and shows all the variables on the scope but when I…

---

## [SwiftPM and LLDB](https://forums.swift.org/t/swiftpm-and-lldb/26966)

<div class="topic-metadata">

**Author:** [@eaplatanios](https://forums.swift.org/u/eaplatanios)\
**Replies:** 18\
**Last updated:** [August 16, 2019, 12:15am UTC](https://forums.swift.org/t/swiftpm-and-lldb/26966 "2019-08-16T00:15:40Z")

</div>

Hi all, Currently when I try to debug some libraries with LLDB and see the values of variables I get errors of the form failed to get module "XXX" from AST context. I read in another thread that I should try passing -Xf…

---

## [LLDB Broken in Nightly Toolchains](https://forums.swift.org/t/lldb-broken-in-nightly-toolchains/27777)

<div class="topic-metadata">

**Author:** [@eaplatanios](https://forums.swift.org/u/eaplatanios)\
**Replies:** 6\
**Last updated:** [August 12, 2019, 8:24pm UTC](https://forums.swift.org/t/lldb-broken-in-nightly-toolchains/27777 "2019-08-12T20:24:36Z")

</div>

LLDB seems to be broken in the nightly toolchains. LLDB.framework is not included in the toolchains anymore for some reason, resulting in the following linking error when trying to run the toolchain-provided lldb: dyld:…

---

## [LLDB and Swig 4](https://forums.swift.org/t/lldb-and-swig-4/27761)

<div class="topic-metadata">

**Author:** [@eaplatanios](https://forums.swift.org/u/eaplatanios)\
**Replies:** 2\
**Last updated:** [August 9, 2019, 4:26pm UTC](https://forums.swift.org/t/lldb-and-swig-4/27761 "2019-08-09T16:26:10Z")

</div>

Hi all, It seems like Swift LLDB is not compatible with Swig 4. If I compile a Swift toolchain with Swig 4 installed, LLDB scripting is not working. The generated LLDB.framework/Resources/Python/lldb/\_\_init\_\_.py file is…

---

## [LLDB Linking Error](https://forums.swift.org/t/lldb-linking-error/27041)

<div class="topic-metadata">

**Author:** [@eaplatanios](https://forums.swift.org/u/eaplatanios)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 4:30pm UTC](https://forums.swift.org/t/lldb-linking-error/27041 "2019-07-19T16:30:02Z")

</div>

Hi, Whenever I add the no-assertions flag to my Swift compiler build I get the following linking error for LLDB when building a toolchain: Ld /Users/eaplatanios/Development/GitHub/swift-source-temp/swift/swift-nightly-…

---

## [LLDB does not build](https://forums.swift.org/t/lldb-does-not-build/26841)

<div class="topic-metadata">

**Author:** [@AndrewLitteken](https://forums.swift.org/u/AndrewLitteken)\
**Replies:** 2\
**Last updated:** [July 11, 2019, 12:20am UTC](https://forums.swift.org/t/lldb-does-not-build/26841 "2019-07-11T00:20:01Z")

</div>

I'm trying to build LLDB from source, but am encountering the following bug when running lldb/scripts/build-swift-cmake.py --test from the swift-lldb repository: Assertion failed: (this-\>NamelinkMode == NamelinkModeNone…

---

## [Comming Soon to a Terminal Near You: Swift REPL on Windows](https://forums.swift.org/t/comming-soon-to-a-terminal-near-you-swift-repl-on-windows/24917)

<div class="topic-metadata">

**Author:** [@compnerd](https://forums.swift.org/u/compnerd)\
**Replies:** 6\
**Last updated:** [May 30, 2019, 3:35pm UTC](https://forums.swift.org/t/comming-soon-to-a-terminal-near-you-swift-repl-on-windows/24917 "2019-05-30T15:35:22Z")

</div>

I was recently playing around with lldb, Swift, and Windows (as one does :-p). I have gotten the REPL to the point where it now runs on Windows! There are some improvements to be made still, primarily in the applicatio…

---

## [How to manually run swift-lldb tests?](https://forums.swift.org/t/how-to-manually-run-swift-lldb-tests/24404)

<div class="topic-metadata">

**Author:** [@dan-zheng](https://forums.swift.org/u/dan-zheng)\
**Replies:** 4\
**Last updated:** [May 11, 2019, 2:58am UTC](https://forums.swift.org/t/how-to-manually-run-swift-lldb-tests/24404 "2019-05-11T02:58:22Z")

</div>

I wonder how to manually run swift-lldb tests? After finding this reply, I tried the following (after building swift via update-checkout and build-script) and got an error: # Invoked within Swift build directory. $ lld…

---

## [Swift debug agent is 32x larger?](https://forums.swift.org/t/swift-debug-agent-is-32x-larger/24035)

<div class="topic-metadata">

**Author:** [@compnerd](https://forums.swift.org/u/compnerd)\
**Replies:** 6\
**Last updated:** [May 4, 2019, 6:51pm UTC](https://forums.swift.org/t/swift-debug-agent-is-32x-larger/24035 "2019-05-04T18:51:59Z")

</div>

I was looking at lldb-server recently and noticed that the target side debugger stub, lldb-server is a whopping 261 MB after stripping (it weighs in at 1.6 GB with debug info). This is a stark contrast to the relatively…

---

## [\[GSoC 2019\] Swift debugging support on Linux](https://forums.swift.org/t/gsoc-2019-swift-debugging-support-on-linux/22160)

<div class="topic-metadata">

**Author:** [@kateinoigakukun](https://forums.swift.org/u/kateinoigakukun)\
**Replies:** 5\
**Last updated:** [April 3, 2019, 3:52pm UTC](https://forums.swift.org/t/gsoc-2019-swift-debugging-support-on-linux/22160 "2019-04-03T15:52:18Z")

</div>

Hello, I'm Yuta Saito a freshman student in Japan. I am interested in participating in GSoC2019 and implementing this feature. I already have some knowledge of the runtime library of Swift and I've presented about it i…

---

## [LLDB test failures for swift toolchain on PowerPC64LE](https://forums.swift.org/t/lldb-test-failures-for-swift-toolchain-on-powerpc64le/21462)

<div class="topic-metadata">

**Author:** [@stamba](https://forums.swift.org/u/stamba)\
**Replies:** 0\
**Last updated:** [March 11, 2019, 1:44pm UTC](https://forums.swift.org/t/lldb-test-failures-for-swift-toolchain-on-powerpc64le/21462 "2019-03-11T13:44:57Z")

</div>

Used the 'llvm-readelf' utility to find details about the libraries linked with lldb binary and realised that the directories mentioned in RUNPATH might not have the required libraries. Similar to reasons mentioned in m…

[Previous page](https://forums.swift.org/c/development/lldb/13.md?page=1)

[Next page](https://forums.swift.org/c/development/lldb/13.md?page=3)
