Skip to content

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

Draft
tinder-hemanthprasad wants to merge 1 commit into
MobileNativeFoundation: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 into
MobileNativeFoundation:mainfrom
tinder-hemanthprasad:hemanthprasad/fix-lldb-source-map-leading-slash

Conversation

@tinder-hemanthprasad
Copy link
Copy Markdown

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

# Workspace-relative paths with leading slash (e.g., /Projects/...)
# These appear in debug symbols and need to be mapped to the workspace root
echo "settings append target.source-map \"/\" \"$execution_root/\""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like it will hit too broad? There might be actual absolute paths as well that will now be mapped to the execution_root.

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

3 participants