Open post Geoff Foster @gfoster@hachyderm.io · 6mo ago Replying to @ole@chaos.social <p>I didn’t know binaries could embed LLDB-specific bytecode for formatting custom data types nicely in the debugger, as shown in this swift-collections PR: <a href="https://github.com/apple/swift-collections/pull/607" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/apple/swift-collect</span><span class="invisible">ions/pull/607</span></a>. The code also uses fancy new Swift features to place the bytecode in a specific linker section:</p><p>@section(".lldbformatters")<br />@used<br />let __BasicContainers___RigidArray______formatter: (UInt8, UInt8, …, UInt8) = …</p> @ole@chaos.social It looks like this is what the @DebugDescription macro ends up adding, which is pretty neat when I can get it to work correctly...