Skip to content

Fix Xcode navigation for stack trace paths with leading slash#3291

Draft
tinder-hemanthprasad wants to merge 1 commit intoMobileNativeFoundation:mainfrom
tinder-hemanthprasad:hemanthprasad/fix-lldb-source-map-leading-slash
Draft

Fix Xcode navigation for stack trace paths with leading slash#3291
tinder-hemanthprasad wants to merge 1 commit intoMobileNativeFoundation:mainfrom
tinder-hemanthprasad:hemanthprasad/fix-lldb-source-map-leading-slash

Conversation

@tinder-hemanthprasad
Copy link

Fixes #3290

Stack traces in Xcode show workspace-relative paths with a leading slash (e.g., /Projects/Module/File.swift:123). These paths are not clickable because the lldbinit source-map configuration only handles paths starting with ./ and not /.

This adds a source-map entry for the / prefix to create_lldbinit.sh, mapping it to the workspace root ($execution_root).

Testing

  • Manually verified: Added the source-map entry to ~/.lldbinit-rules_xcodeproj, restarted Xcode, and confirmed clicking stack trace paths now navigates correctly

Related

Related to #3134 (other lldbinit configuration concerns)

Made with Cursor

@tinder-hemanthprasad tinder-hemanthprasad requested a review from a team as a code owner March 17, 2026 23:31
@tinder-hemanthprasad tinder-hemanthprasad marked this pull request as draft March 17, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Stack trace paths with leading slash not clickable in Xcode

1 participant