Quantcast
Channel: LLDB - Swift Forums
Browsing all 40 articles
Browse latest View live

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

Image may be NSFW.
Clik here to view.

PLUGIN_SEARCH_OPTION in swiftmodule make it not cacheable

As swift 6.x starts to use different swiftmodule for TypeSystemSwiftTypeRefForExpression when constructing swift ast context, we are required to provide all our swiftmodules to linker with...

View Article
Browsing all 40 articles
Browse latest View live