# LLDB

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

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

**Page:** 2

---

## [Partition the reflection metadata to Runtime and Debug categories](https://forums.swift.org/t/partition-the-reflection-metadata-to-runtime-and-debug-categories/63163)

<div class="topic-metadata">

**Author:** [@omax](https://forums.swift.org/u/omax)\
**Replies:** 0\
**Last updated:** [February 16, 2023, 8:04pm UTC](https://forums.swift.org/t/partition-the-reflection-metadata-to-runtime-and-debug-categories/63163 "2023-02-16T20:04:38Z")

</div>

During the review of the Opt-In Reflection Metadata proposal, @Adrian\_Prantl raised a concern regarding the preservation of debugging capabilities while implementing the support of Opt-in reflection metadata. I would l…

---

## [Intermittent behavior while debugging swift application with LLDB](https://forums.swift.org/t/intermittent-behavior-while-debugging-swift-application-with-lldb/51471)

<div class="topic-metadata">

**Author:** [@Lcsmarcal](https://forums.swift.org/u/Lcsmarcal)\
**Replies:** 7\
**Last updated:** [January 6, 2023, 6:13pm UTC](https://forums.swift.org/t/intermittent-behavior-while-debugging-swift-application-with-lldb/51471 "2023-01-06T18:13:17Z")

</div>

We use Buck as our swift application build system and we are getting some intermittent behaviors while debugging the app with LLDB. When stopping at some breakpoints and running a po with some instance value of self we'…

---

## [Nightly Toolchain has broken LLDB support on macOS](https://forums.swift.org/t/nightly-toolchain-has-broken-lldb-support-on-macos/53151)

<div class="topic-metadata">

**Author:** [@fan](https://forums.swift.org/u/fan)\
**Replies:** 8\
**Last updated:** [November 19, 2022, 9:04pm UTC](https://forums.swift.org/t/nightly-toolchain-has-broken-lldb-support-on-macos/53151 "2022-11-19T21:04:58Z")

</div>

It seems that the official toolchains on swift.org don't have the proper entitlements to debug processes. This breaks the REPL as well: lldb ls (lldb) target create "ls" Current executable set to 'ls' (x86\_64). (lldb) …

---

## [Xctoolchain compiled by build-script, cannot be debug](https://forums.swift.org/t/xctoolchain-compiled-by-build-script-cannot-be-debug/59812)

<div class="topic-metadata">

**Author:** [@mouseDuan](https://forums.swift.org/u/mouseDuan)\
**Replies:** 0\
**Last updated:** [August 22, 2022, 2:49pm UTC](https://forums.swift.org/t/xctoolchain-compiled-by-build-script-cannot-be-debug/59812 "2022-08-22T14:49:05Z")

</div>

I compiled the xctoolchain by using build-script, then import the xctoolchain into Xcode. When I used it to debug the app, the launch storyboard is always stuck，and Xcode console has no message output. please help me to…

---

## [Xcode 12.5 - cannot find '$\_\_lldb\_injected\_self' in scope](https://forums.swift.org/t/xcode-12-5-cannot-find-lldb-injected-self-in-scope/48650)

<div class="topic-metadata">

**Author:** [@qing](https://forums.swift.org/u/qing)\
**Replies:** 11\
**Last updated:** [June 27, 2022, 7:30pm UTC](https://forums.swift.org/t/xcode-12-5-cannot-find-lldb-injected-self-in-scope/48650 "2022-06-27T19:30:29Z")

</div>

I'm currently investigating a lldb regression on Xcode 12.5. The actual code involves complicated Swift logics: many levels of generic, protocols, extensions, etc, so I haven't figured out how to reproduce in a small sam…

---

## [Nil variables inside @synchronized block in release mode](https://forums.swift.org/t/nil-variables-inside-synchronized-block-in-release-mode/58461)

<div class="topic-metadata">

**Author:** [@LucianoPAlmeida](https://forums.swift.org/u/LucianoPAlmeida)\
**Replies:** 1\
**Last updated:** [June 25, 2022, 3:39am UTC](https://forums.swift.org/t/nil-variables-inside-synchronized-block-in-release-mode/58461 "2022-06-25T03:39:25Z")

</div>

Hey everyone, I was debugging an objc code today from a binary objc framework that was built in release mode and noticed that lldb was giving a nil for variables inside the method that has an @synchronized. Reduced ex…

---

## [Get error: "failed to get reply to handshake packet" when running app in lldb](https://forums.swift.org/t/get-error-failed-to-get-reply-to-handshake-packet-when-running-app-in-lldb/58176)

<div class="topic-metadata">

**Author:** [@rayxia](https://forums.swift.org/u/rayxia)\
**Replies:** 4\
**Last updated:** [June 24, 2022, 3:43am UTC](https://forums.swift.org/t/get-error-failed-to-get-reply-to-handshake-packet-when-running-app-in-lldb/58176 "2022-06-24T03:43:31Z")

</div>

Hi @Adrian\_Prantl , sorry to bother you, I built the lldb using tag swift-5.6.1-RELEASE, but when I launch lldb I built, and using process launch to run the app, I get the error says "failed to get reply to handshake pa…

---

## [Debugger for Windows](https://forums.swift.org/t/debugger-for-windows/56780)

<div class="topic-metadata">

**Author:** [@mockingsquare](https://forums.swift.org/u/mockingsquare)\
**Replies:** 1\
**Last updated:** [April 21, 2022, 7:26am UTC](https://forums.swift.org/t/debugger-for-windows/56780 "2022-04-21T07:26:55Z")

</div>

Hello, I gave up on setting up a development environment on Windows that would allow me to use debugger for Swift project. I think the problem had to do with lldb installation and/or its dependencies. Currently, I am us…

---

## [Run REPL whilst program is running](https://forums.swift.org/t/run-repl-whilst-program-is-running/56296)

<div class="topic-metadata">

**Author:** [@miguelmartin](https://forums.swift.org/u/miguelmartin)\
**Replies:** 0\
**Last updated:** [March 28, 2022, 10:32pm UTC](https://forums.swift.org/t/run-repl-whilst-program-is-running/56296 "2022-03-28T22:32:52Z")

</div>

Is this possible? I want to run my executable whilst having a REPL opened, ideally being able to patch methods or simply just access variables. If not, are there creative solutions around this? Such as RPC. Here's my a…

---

## [Xcode 13.3 has broken debugging testing in the VSCode swift extension](https://forums.swift.org/t/xcode-13-3-has-broken-debugging-testing-in-the-vscode-swift-extension/55960)

<div class="topic-metadata">

**Author:** [@adam-fowler](https://forums.swift.org/u/adam-fowler)\
**Replies:** 5\
**Last updated:** [March 16, 2022, 9:31am UTC](https://forums.swift.org/t/xcode-13-3-has-broken-debugging-testing-in-the-vscode-swift-extension/55960 "2022-03-16T09:31:47Z")

</div>

With the release of Xcode 13.3 debugging tests in the Visual Studio Code swift extension has broken. Unfortunately VSCode is still reliant on Xcode to provide a version of xctest on macOS. Debugging tests involves sendin…

---

## [Lldb is so slow when hitting the breakpoint](https://forums.swift.org/t/lldb-is-so-slow-when-hitting-the-breakpoint/55702)

<div class="topic-metadata">

**Author:** [@rayxia](https://forums.swift.org/u/rayxia)\
**Replies:** 0\
**Last updated:** [March 3, 2022, 7:19am UTC](https://forums.swift.org/t/lldb-is-so-slow-when-hitting-the-breakpoint/55702 "2022-03-03T07:19:56Z")

</div>

Hi, my swift project has 500+ dependencies which is binary framework managed by CocoaPods, when hitting the breakpoint, the lldb will take 2min+ to resolve the value. I use log enable lldb break to see what is doing whe…

---

## [Lldb crash when set breakpoint](https://forums.swift.org/t/lldb-crash-when-set-breakpoint/55570)

<div class="topic-metadata">

**Author:** [@rayxia](https://forums.swift.org/u/rayxia)\
**Replies:** 6\
**Last updated:** [February 25, 2022, 6:41am UTC](https://forums.swift.org/t/lldb-crash-when-set-breakpoint/55570 "2022-02-25T06:41:22Z")

</div>

I build the lldb to test something, and when I use 'breakpoint set' command, lldb crashed. I use the tag 'swift-5.5.2-RELEASE' to build, here is the crash dump: error: libarclite\_iphoneos.a(arclite.o) failed to load ob…

---

## [Is there a way to modify the path section of .swiftmodule file?](https://forums.swift.org/t/is-there-a-way-to-modify-the-path-section-of-swiftmodule-file/55307)

<div class="topic-metadata">

**Author:** [@rayxia](https://forums.swift.org/u/rayxia)\
**Replies:** 2\
**Last updated:** [February 15, 2022, 2:45am UTC](https://forums.swift.org/t/is-there-a-way-to-modify-the-path-section-of-swiftmodule-file/55307 "2022-02-15T02:45:11Z")

</div>

Hi, I have a question about swiftmodule file, here is the background. Our project has many dependencies which are binary file. And these dependencies are build in the remote server. And I found the input block of .swift…

---

## [Swift 5.5.3 and LLDB SwiftNIO crash fix](https://forums.swift.org/t/swift-5-5-3-and-lldb-swiftnio-crash-fix/54562)

<div class="topic-metadata">

**Author:** [@adam-fowler](https://forums.swift.org/u/adam-fowler)\
**Replies:** 1\
**Last updated:** [January 12, 2022, 1:11pm UTC](https://forums.swift.org/t/swift-5-5-3-and-lldb-swiftnio-crash-fix/54562 "2022-01-12T13:11:23Z")

</div>

I posted this bug \[SR-15677\] LLDB crashes when viewing frame in SwiftNIO code · Issue #4299 · apple/llvm-project · GitHub a week or so ago about LLDB crashing when debugging SwiftNIO on Linux. I since found it is fixed i…

---

## [LLDB not honoring minimum platform version for SPM packages](https://forums.swift.org/t/lldb-not-honoring-minimum-platform-version-for-spm-packages/53607)

<div class="topic-metadata">

**Author:** [@brunnobga](https://forums.swift.org/u/brunnobga)\
**Replies:** 4\
**Last updated:** [December 8, 2021, 12:52am UTC](https://forums.swift.org/t/lldb-not-honoring-minimum-platform-version-for-spm-packages/53607 "2021-12-08T00:52:42Z")

</div>

I'm running LLDB from Xcode in a project with SPM dependencies. The app runs fine, but when trying to debug no variable watches are displayed and issuing commands just output errors like: error: warning: Failed to load …

---

## [Significant performance regression of DYLD SPI (macOS Big Sur and iOS 14+)](https://forums.swift.org/t/significant-performance-regression-of-dyld-spi-macos-big-sur-and-ios-14/50519)

<div class="topic-metadata">

**Author:** [@Chupik](https://forums.swift.org/u/Chupik)\
**Replies:** 9\
**Last updated:** [August 20, 2021, 8:04pm UTC](https://forums.swift.org/t/significant-performance-regression-of-dyld-spi-macos-big-sur-and-ios-14/50519 "2021-08-20T20:04:55Z")

</div>

Hello, Me and my colleagues noticed a significant performance degradation during debug process. We use Xcode 12.5 and working on a large Swift app with 150+ modules. After migration to macOS 11.3-11.4, our application s…

---

## [LLDB won't accept UTF-8 keyboard input](https://forums.swift.org/t/lldb-wont-accept-utf-8-keyboard-input/50207)

<div class="topic-metadata">

**Author:** [@cryo](https://forums.swift.org/u/cryo)\
**Replies:** 1\
**Last updated:** [July 9, 2021, 7:22pm UTC](https://forums.swift.org/t/lldb-wont-accept-utf-8-keyboard-input/50207 "2021-07-09T19:22:00Z")

</div>

(I orignally posted this question in "Using Swift", since I discovered it in the REPL, but then I learned that it's based on LLDB, and LLDB has the same behavior: Swift REPL UTF-8 keyboard support) I'm using LLDB from W…

---

## [Could not resolve type when debugging the manually build staticlib](https://forums.swift.org/t/could-not-resolve-type-when-debugging-the-manually-build-staticlib/49406)

<div class="topic-metadata">

**Author:** [@sot](https://forums.swift.org/u/sot)\
**Replies:** 0\
**Last updated:** [June 9, 2021, 9:29am UTC](https://forums.swift.org/t/could-not-resolve-type-when-debugging-the-manually-build-staticlib/49406 "2021-06-09T09:29:44Z")

</div>

i build the swift lib manually.first use swift frontend to generate the bitcode,then use llc to generate the objfile,finally use libtool to pack all the objfiles to a static lib.the app is work well linking such staticli…

---

## [Google Summer of Code "Improving Swift’s Debugger experience on Linux" Final Report](https://forums.swift.org/t/google-summer-of-code-improving-swift-s-debugger-experience-on-linux-final-report/39893)

<div class="topic-metadata">

**Author:** [@augusto2112](https://forums.swift.org/u/augusto2112)\
**Replies:** 2\
**Last updated:** [May 22, 2021, 9:35pm UTC](https://forums.swift.org/t/google-summer-of-code-improving-swift-s-debugger-experience-on-linux-final-report/39893 "2021-05-22T21:35:08Z")

</div>

GSOC has come to an end. In this post, I'll summarize the work done in the summer, as well as the overall experience of contributing to the Swift project. Hopefully, this will useful for future GSOC participants as well. …

---

## [LLDB release included in 5.4 official distribution is built with asserts](https://forums.swift.org/t/lldb-release-included-in-5-4-official-distribution-is-built-with-asserts/47809)

<div class="topic-metadata">

**Author:** [@hassila](https://forums.swift.org/u/hassila)\
**Replies:** 0\
**Last updated:** [April 30, 2021, 2:31pm UTC](https://forums.swift.org/t/lldb-release-included-in-5-4-official-distribution-is-built-with-asserts/47809 "2021-04-30T14:31:43Z")

</div>

This is fairly problematic on Linux, as many actions triggers asserts there - would be amazing if the official build process could be changed such that official releases are built without asserts (and possibly the snapsh…

---

## [Improving Path Remappings for ExtraClangArgs/SwiftASTContext](https://forums.swift.org/t/improving-path-remappings-for-extraclangargs-swiftastcontext/26886)

<div class="topic-metadata">

**Author:** [@DavidGoldman](https://forums.swift.org/u/DavidGoldman)\
**Replies:** 34\
**Last updated:** [March 17, 2021, 7:47am UTC](https://forums.swift.org/t/improving-path-remappings-for-extraclangargs-swiftastcontext/26886 "2021-03-17T07:47:35Z")

</div>

Background: SwiftASTContext when parsing swiftmodules currently applies the working-directory flag if found in the ExtraClangOptions (see here). This works well in most use cases, but in the case of distributed builds …

---

## [Missing info in dSYM files when using Swift JSON Decoder with Codable](https://forums.swift.org/t/missing-info-in-dsym-files-when-using-swift-json-decoder-with-codable/45445)

<div class="topic-metadata">

**Author:** [@Timac](https://forums.swift.org/u/Timac)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 6:00pm UTC](https://forums.swift.org/t/missing-info-in-dsym-files-when-using-swift-json-decoder-with-codable/45445 "2021-03-08T18:00:06Z")

</div>

In a dSYM file created with Xcode 12.4 or Xcode 12.5 beta 3, it seems that there is no info to link structures that use Codable. Or maybe I missed something? I reported the radar FB9035396 with these info. Steps to Repr…

---

## [Xcode 12.5: DW\_TAG\_subprogram missing for Swift Computed Variables in dSYM file](https://forums.swift.org/t/xcode-12-5-dw-tag-subprogram-missing-for-swift-computed-variables-in-dsym-file/45431)

<div class="topic-metadata">

**Author:** [@Timac](https://forums.swift.org/u/Timac)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 7:48am UTC](https://forums.swift.org/t/xcode-12-5-dw-tag-subprogram-missing-for-swift-computed-variables-in-dsym-file/45431 "2021-03-08T07:48:07Z")

</div>

Starting with Xcode 12.5 (tested with b2 and b3), the DW\_TAG\_subprogram for some Swift Computed Variables are missing in the dSYM files. Note that you can also find the radar FB9034737 with these info. Does anyone know …

---

## [Linux lldb releases with python?](https://forums.swift.org/t/linux-lldb-releases-with-python/36838)

<div class="topic-metadata">

**Author:** [@kuwerty](https://forums.swift.org/u/kuwerty)\
**Replies:** 7\
**Last updated:** [January 22, 2021, 3:47pm UTC](https://forums.swift.org/t/linux-lldb-releases-with-python/36838 "2021-01-22T15:47:42Z")

</div>

I've noticed that the lldb in the official Ubuntu 16.04 tarballs is missing all the python scripting support. We've got a couple of formatters, synthetic providers that we really want to use. Is there a way to cobble t…

---

## [The Swift REPL doesn't properly display certain characters on some Linux terminals](https://forums.swift.org/t/the-swift-repl-doesnt-properly-display-certain-characters-on-some-linux-terminals/43440)

<div class="topic-metadata">

**Author:** [@augusto2112](https://forums.swift.org/u/augusto2112)\
**Replies:** 6\
**Last updated:** [January 21, 2021, 10:45am UTC](https://forums.swift.org/t/the-swift-repl-doesnt-properly-display-certain-characters-on-some-linux-terminals/43440 "2021-01-21T10:45:43Z")

</div>

Hi everyone. The Swift REPL fails to display certain characters on some terminals (for example, Ubuntu 20.04 is affected, but not Ubuntu 18.04). After the first line, some characters will simply not show up (like colons…

---

## [LLDB regression in 11.6](https://forums.swift.org/t/lldb-regression-in-11-6/41060)

<div class="topic-metadata">

**Author:** [@tapthaker](https://forums.swift.org/u/tapthaker)\
**Replies:** 6\
**Last updated:** [October 12, 2020, 5:24pm UTC](https://forums.swift.org/t/lldb-regression-in-11-6/41060 "2020-10-12T17:24:41Z")

</div>

Xcode LLDB Regression We are seeing that LLDB takes a very long time to execute the set breakpoint command with Xcode 11.6. I compared LLDB b/w Xcode 11.2.1 and Xcode 11.6. It seems that the LLDB team has changed the DW…

---

## [LLDB usage of DW\_AT\_LLVM\_isysroot](https://forums.swift.org/t/lldb-usage-of-dw-at-llvm-isysroot/40575)

<div class="topic-metadata">

**Author:** [@DavidGoldman](https://forums.swift.org/u/DavidGoldman)\
**Replies:** 7\
**Last updated:** [September 25, 2020, 10:19pm UTC](https://forums.swift.org/t/lldb-usage-of-dw-at-llvm-isysroot/40575 "2020-09-25T22:19:47Z")

</div>

We're looking at improving the hermeticity of .o files with Bazel. From on macOS isysroot should be set to a stable execroot relative path · Issue #966 · bazelbuild/rules\_apple · GitHub, both Swift/Clang emit debug info…

---

## [Lldb performance with clang modules and Swift](https://forums.swift.org/t/lldb-performance-with-clang-modules-and-swift/38160)

<div class="topic-metadata">

**Author:** [@DeeSee](https://forums.swift.org/u/DeeSee)\
**Replies:** 9\
**Last updated:** [August 17, 2020, 3:00pm UTC](https://forums.swift.org/t/lldb-performance-with-clang-modules-and-swift/38160 "2020-08-17T15:00:33Z")

</div>

Our project has about 1k clang modules, and about 600 swift modules. We experience severe delay when attaching to process with lldb: after emptying ~/Library/Developer/Xcode/DerivedData/ModuleCache.noindex it takes about…

---

## [Swift autocompletion with lldb from CLI](https://forums.swift.org/t/swift-autocompletion-with-lldb-from-cli/39088)

<div class="topic-metadata">

**Author:** [@ivhernandez](https://forums.swift.org/u/ivhernandez)\
**Replies:** 1\
**Last updated:** [August 17, 2020, 6:50am UTC](https://forums.swift.org/t/swift-autocompletion-with-lldb-from-cli/39088 "2020-08-17T06:50:10Z")

</div>

Is there a reason why lldb doesn't provide completions when typing an expression? Say I have a variable named myAwesomeIvar in the frame lldb has stopped at. Hitting tab after typing po myAwes doesn't give any results b…

---

## [Building Swift REPL for iOS](https://forums.swift.org/t/building-swift-repl-for-ios/38842)

<div class="topic-metadata">

**Author:** [@joehink](https://forums.swift.org/u/joehink)\
**Replies:** 2\
**Last updated:** [August 1, 2020, 5:37pm UTC](https://forums.swift.org/t/building-swift-repl-for-ios/38842 "2020-08-01T17:37:10Z")

</div>

Anyone know how to build Swift REPL, and furthermore target iOS? Or anything to point me in the right direction? Thanks!

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

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