Could not resolve type when debugging the manually build staticlib
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...
View ArticleLLDB won't accept UTF-8 keyboard input
(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)...
View ArticleSignificant performance regression of DYLD SPI (macOS Big Sur and iOS 14+)
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...
View ArticleIntermittent behavior while debugging swift application with LLDB
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...
View ArticleNightly Toolchain has broken LLDB support on macOS
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'...
View ArticleLLDB not honoring minimum platform version for SPM packages
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:...
View ArticleSwift 5.5.3 and LLDB SwiftNIO crash fix
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...
View ArticleIs there a way to modify the path section of .swiftmodule file?
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...
View ArticleLldb crash when set breakpoint
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)...
View ArticleLldb is so slow when hitting the breakpoint
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...
View ArticleXcode 13.3 has broken debugging testing in the VSCode swift extension
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...
View ArticleRun REPL whilst program is running
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...
View ArticleDebugger for Windows
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....
View ArticleLLDB fails to load Clang explicit modules due to class_ro_t pointer...
Debugging with explicit modules has started failing on XCode 13.3 and newer. The exact error I'm seeing is: warning: (x86_64)...
View ArticleGet error: "failed to get reply to handshake packet" when running app in lldb
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...
View ArticleNil variables inside @synchronized block in release mode
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...
View ArticleXctoolchain compiled by build-script, cannot be debug
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...
View ArticleXcode 14.1 debugger: "error: Couldn't realize type of self"
I recently added Swift to my existing objective-c static library project and encountering issues when debugging Swift code. When code stops at a breakpoint and I enter a po command, such as: po title,...
View ArticlePartition the reflection metadata to Runtime and Debug categories
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...
View Article[SOLVED] LLDB failed when I connected my c++ lib
I connected C++ library to my executable SPM project and set -enable-experimental-cxx-interop to swift settings, and when I try to debug with LLDB, I received the next error messages (lldb) po self...
View Article