fix: line number support for unity 6.5 and newer - #2805
Merged
Conversation
Start Unity Editor with --link-symbols in its process environment to determine whether Linux Bee reads the setting before build preprocessing. Refs #2805 Co-Authored-By: OpenCode <noreply@openai.com>
The process-start linker argument reached UnityLinker but did not restore Linux source resolution, so remove the temporary CI override. Refs #2805 Co-Authored-By: OpenCode <noreply@openai.com>
JoshuaMoelans
approved these changes
Aug 13, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f3d7a79. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Context
In Unity 6.3 and older, when building the game you'd end up with an output folder looking like that
The
Manageddirectory would contain all the stripped down.dlland matching.pdbfiles. Starting with 6.5 theManagedfolder contains the.dllonly. To get to the.pdbyou will need to do a Development build and opt-in toScript Debugging. Not ideal.What this does
These options provide the UnityLinker with the additional argument
--link-symbols.So starting with Unity 6.5 on top of adding
--emit-source-mappingto IL2CPP we need to add this argument when the UnityLinker gets invoked. Since there are no callbacks and the backdoor ofAdditionalIl2CppArgumentsonly works for IL2CPP we're touching some internals to do the same for theAdditionalUnityLinkerArguments.We'll need to find a less brittle way of getting to the debug symbols
Before
After
Testing
We're now also validating that the stack trace on the resulting events coming from the integration tests do have proper frames with a line number.