Search Issue Tracker
Fixed
Fixed in 2021.3.18f1, 2022.2.5f1, 2023.1.0a26
Votes
0
Found in
2020.3.40f1
2021.3.11f1
2022.1.19f1
2022.2.0b9
2023.1.0a13
Issue ID
UUM-16704
Regression
No
Switching between debug and release mode multiple times is not handled correctly
Reproduction steps:
# Open the user’s attached project
# Open the “SampleScene” Scene
# Open file Test.cs in Visual Studio
# Put a breakpoint in the method OnValidate
# Hit F5 to start the debugger, and wait for debugging session to start
# Unity asks for enabling debugging, click "Enable debugging for this session"
# Hit F5 to continue
# Back in Unity, edit member "Value" of object Test to trigger again the debug breakpoint
# Close the debugging session in Visual Studio ( Shift F5 )
# Back in Unity, click the debug icon in the lower right corner of the Main Window, which pops up a dialog about debugging
# Click on "Switch to release mode"
# Try to start debugging session directly from Visual Studio (F5)
Expected result: Debugging session starts
Actual result: Debugging session does not start
Reproducible with: 2020.3.40f1, 2021.3.11f1 2022.1.19f1. 2022.2.0b9, 2023.1.0a13
Reproduced on: Windows 10 Pro 21H2,
Notes:
* In Visual Studio, click on "Debug/Attach Unity Debugger", and notice that now we have 3 different debugger instances displayed
* Note that this is not related to Visual Studio 2022, the same issue reproduces with Visual Studio 2019
* If reload assemblies never load, delete the projects library and try again
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
- Tilemap.SetTile() does not change the tiles when called from Update() in the Player
- Custom Shader Material is pink when the project is built for the WebGL platform
- New 3D URP Sample Scenes Project is created with an invalid dependency on com.unity.render-pipelines.universal-config when creating the Sample Project for the first time
- Canvas Scaler causes abnormal scaling of Canvas elements in Play Mode when UI Scale Mode is set to "Constant Physical Size" and any Editor window is moved to a differently scaled monitor and is interacted with
- Touch.rawPosition always returns (0,0) when clicking or dragging anywhere on the screen in the Play Mode
Resolution Note (fix version 2023.1.0a26):
Fixed issue where the Unity runtime would refuse C# debugger connections after alternating between release & debug optimizations multiple times.