---
title: "Module Tracking in Swift Debug Info"
description: "Swift 6.3 and 6.4 change how explicitly-built Swift modules are referenced in debug info so LLDB's expression evaluator can import the exact module for the code at a breakpoint instead of looking it up by base name."
url: "https://swe.quest/articles/module-tracking-in-swift-debug-info-924221c1e8f2aa55"
canonical: "https://www.swift.org/blog/module-tracking-in-debug-info/"
source: "Swift.org"
published: "2026-09-11"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 9
tags: ["swift","debugging","build-systems","compilers","developer-tools"]
---

# Module Tracking in Swift Debug Info

A post on [Swift.org](https://swe.quest/sources/swift.md), published 2026-09-11, 9 min read, Deep dive. Original: [https://www.swift.org/blog/module-tracking-in-debug-info/](https://www.swift.org/blog/module-tracking-in-debug-info/)

## Summary

Swift 6.3 and 6.4 change how explicitly-built Swift modules are referenced in debug info so LLDB's expression evaluator can import the exact module for the code at a breakpoint instead of looking it up by base name. Binary Swift modules now record their Swift module dependencies, and a new -debug-module-path compiler option stores each object file's own module path in DWARF, honoring path remapping and compilation caching. As a result, -modulewrap on Linux/Windows and ld -add\_ast\_path on Darwin are no longer needed, dSYMs and binaries shrink because they no longer embed binary modules, and slow implicit-import fallbacks go away. SwiftPM and Xcode users get this automatically, while custom build systems (Bazel, Buck, CMake) that call the frontend directly must pass -debug-module-path. Swift 6.4 also lets LLDB import precompiled bridging headers.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Swift](https://swe.quest/tags/swift.md) (Languages)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Compilers](https://swe.quest/tags/compilers.md) (Compilers & runtimes)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- Swift modules ([easy posts on Swift](https://swe.quest/tags/swift.md?difficulty=easy))
- DWARF debug info
- LLDB expression evaluation ([easy posts on Evaluation](https://swe.quest/tags/evals.md?difficulty=easy))
- build system linker flags ([easy posts on Build systems](https://swe.quest/tags/build-systems.md?difficulty=easy))

## Keywords

LLDB, Swift 6.3, Swift 6.4, dSYM, -debug-module-path, dsymutil, DWARF, explicitly-built modules

## Related posts

- [Swift 6.3 Released](https://swe.quest/articles/swift-6-3-released-7c44208b49d0d9e6.md): Swift.org · 2026-03-24 · Medium · 6 min read · Swift, Build systems, Testing, Mobile, Documentation
  Swift 6.3 adds a \`@c\` attribute for exposing Swift functions and enums to C (or implementing C-declared functions in Swift via \`@c @implementation\`), \`Module::name\` selectors for disambiguating APIs from different imported modules, and library performance attributes \`@specialize\`, \`@inline(always)\` and \`@export(implementation)\`.
- [What's new in Swift: September 2026 Edition](https://swe.quest/articles/what-s-new-in-swift-september-2026-edition-c33a1cfebf7ae281.md): Swift.org · 2026-10-08 · Easy · 4 min read · Swift, WebAssembly, Build systems
  Swift 6.4 shipped with Swift Build as the default SwiftPM build system, Subprocess 1.0, up to 40x faster WebAssembly bridging via JavaScriptKit, path-based module tracking in debug info (build systems should switch to \`-debug-module-path\`), and Embedded Swift improvements.
- [Swift 6.4 Released](https://swe.quest/articles/swift-6-4-released-393cd350ed7f57b9.md): Swift.org · 2026-09-15 · Medium · 7 min read · Swift, Language design, Build systems, WebAssembly, Memory management
  Swift 6.4 makes Swift Build the default backend for SwiftPM, giving consistent builds across Linux, macOS and Windows, adds SBOM generation, and ships Subprocess 1.0 for cross-platform process execution on Swift concurrency.
- [GSoC 2026 Showcase](https://swe.quest/articles/gsoc-2026-showcase-f21c5f236a531968.md): Swift.org · 2026-11-05 · Easy · 4 min read · Swift, Developer tools, Concurrency, Open source
  Swift's three Google Summer of Code 2026 projects all shipped.
- [Swift at Apple: Migrating the TrueType Hinting Interpreter](https://swe.quest/articles/swift-at-apple-migrating-the-truetype-hinting-interpreter-caf2fb565c1b9a8c.md): Swift.org · 2026-06-12 · Medium · 9 min read · Swift, Memory safety, Performance engineering, Refactoring & migrations, Testing
  Apple rewrote the TrueType font hinting bytecode interpreter from C to memory-safe Swift for its Fall 2025 OS releases.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
