Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
3.0.14
Issue ID
1405437
Regression
No
Script breakpoints in Rider don't trigger on IL2CPP builds with Script Debugging enabled
How to reproduce:
1. Open the user attached project (IL2CPP_Debug.zip)
2. Make sure the Editor's External Script Editor is set to Rider
3. In the project's Assets folder find and open the NewBehaviourScript
4. Add a breakpoint on the 16th line
5. In the Unity Editor make sure the Scripting backend is set to IL2CPP
6. Build the project with "Development build" and "Script Debugging" enabled
7. In Rider in the top right by the play button select the "Standalone Player" in the dropdown
8. Press the Debug button to run and debug the player
9. When the player loads focus on Rider and observe the breakpoint
Expected result: the breakpoint is triggered
Actual result: the breakpoint is not triggered
Reproducible with JetBrains Rider Editor: 3.0.14 (2019.4.38f1, 2020.3.34f1, 2021.3.2f1, 2022.1.0f1)
Couldn't test with: 2022.2.0a12 ("Unable to connect to Unity Executable" error when debugging player built with IL2CPP)
Reproducible on Ubuntu 20.04 and Windows 10
Note: The breakpoint is triggered when the player is built with Mono
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “STP” in Project window > Advanced Upscalers by Priority menu list is shown as available to add when it is already added to the list
- Rename fails with an error “Canceling DisplayDialog” when renaming a Mipmap Limit Group in Project Settings > Quality after adding a new group
- Obsolete API warning CS0618: 'HDAdditionalLightData.SetIntensity(float)' is thrown when installing “Output Event Helpers” Samples to the project
- Misaligned “Show Property Gizmo” and affected “Color” field in Inspector of a VFX Asset
- UIElements Style.translate is shifted down on the Y axis when in Play Mode
Resolution Note:
IL2CPP does not work with debugger arguments that cause it to wait for a debugger to attach. Instead, the Wait For Managed Debugger option in the Build Settings dialog should be used.