Quantcast
Channel: LLDB - Swift Forums
Browsing latest articles
Browse All 39 View Live

Get 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 Article


Image may be NSFW.
Clik here to view.

Nil 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 Article


Xctoolchain 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 Article

Xcode 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 Article

Partition 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

Debugging SIL in LLDB

Has anyone ever tried debugging SIL code in LLDB as mentioned here? If yes, is there a way I can print a SIL value such as, %1 in LLDB? 2 posts - 2 participants Read full topic

View Article

Version of LLVM used by Swift

Hi, How do I tell which branch of llvm-project is used to build the Swift compiler? In particular which branch is being used to build the Swift 5.9 release. 22 posts - 5 participants Read full topic

View Article


Building LLDB

The instructions to build LLDB don't seem to work. I have built a full macOS toolchain and would now like to just build LLDB. The README in the lldb folder says I can build it using...

View Article


Lldb-rpc-server crashes when running SwiftUI applications

Hello! I'm on a fresh install of Ventura 13.6 with Xcode 14.3.1. If I create a new macOS SwiftUI application and run it, the application itself starts and runs without problems. However...

View Article

Image may be NSFW.
Clik here to view.

LLDB: Print valued returned by a function

LLDB supports printing the return value of a function. Here's an example in Xcode, on a simple C project: It appears that this behaviour isn't available in Swift. I wasn't able to find any related...

View Article

Image may be NSFW.
Clik here to view.

Xcode 15: po self error when i debug a framework!

I have a framework and .dsym file, and I have a source code in my computer. when i hit a breakpoint, i run po self, it shows error below(other commands such as v self, i works well): po self error:...

View Article

LLDB support for Swift async frames for Windows x86_64

Hi, LLDB currently has special extended frame support for Swift async frames for x86_64 and arm64. Unfortunately, it doesn't work correctly with windows x86_64 frame layout, as it makes an assumption...

View Article


[Pitch] Include lldb-dap in Swift toolchain

I would like to propose that lldb-dap (The LLDB debug adapter from the llvm-project) be included in the Swift toolchain. It is currently included in the Swift Windows toolchain but not in the Linux...

View Article

SymbolFileDWARF::FindTypes is called too many times (apparently)

I was debugging slow expression evaluation in lldb in my project and noticed that most of the time is spent on calling the functions SymbolFileDWARF::FindTypes and SymbolFileDWARF::FindFunctions. And...

View Article


Location-based error breakpoints (feature request)

I've found the break-on-Swift-error to be almost useless at this point, because so many libraries routinely throw errors. You have to place a breakpoint, enable the error breakpoint, then resume. I...

View Article

Lldb: Unable to bind generic parameters in context with weakly captured self

Hello, I have opened an issue regarding LLDB, see lldb: Unable to bind generic parameters in context with weakly captured self · Issue #9194 · swiftlang/llvm-project · GitHub . TL;DR: If you capture...

View Article


Trouble building lib/liblldb.so.17.0.0 on 6.0.1 using manually built 5.10.1

I hope this is the correct category to post. I have successfully (I think?) built the 5.10.1 based on these instructions here: Building the Swift Project on Linux with lld instead of gold - #24 by...

View Article

LLDB-RPC-Server Playgrounds Crash

For some reason the following crashes on Xcode 16.1 RC Playgrounds Platforms iOS, Swift 6. No issues on Swift 5 import Cocoa protocol VirtualPaksProtocol { associatedtype Base var base: Base { get } }...

View Article

LLDB Negative Cache

In Xcode, the LLDB variables view always beachballs for a bit when debugging a Swift file with type aliases referencing other typealiases. Here’s the relevant source code: open class...

View Article

Odd, persistent LLDB message about class methods

I regularly get this error when evaluating expressions in LLDB: error: <EXPR>:4:20: class methods are only allowed within classes; use 'static' to declare a static method final class func...

View Article


Swift LLDB and Diff Patch Model Context Protocol Server

Hi Swift community, I've gotten quite used to needing AI-enabled code editors like Cursor and Windsurf. But I've noticed that often the LLM while debugging has to write a lot of print statements...

View Article


LLDB Stuck in llvm::vfs:: Loop

We’re experiencing an issue where LLDB freezes when debugging certain AST contexts. The sampled stack trace suggests that LLDB is stuck in an infinite loop with the following calls involved:...

View Article

LLDB Slow Breakpoints Despite Disabling Swift C++ Interop

We’re running into a performance issue with LLDB when hitting a breakpoint in a specific file. The function(in lldb-rpc-server sample) takes around ~10 seconds when a breakpoint is triggered...

View Article

LLDB prints wrong UUID value

LLDB prints the wrong UUID value when unwrapping it as an associated value within a switch‑case statement. let's consider following example: enum MyEnum { case firstCase(UUID) } let myEnum =...

View Article

Browsing latest articles
Browse All 39 View Live