Game stops on breakpoint in Rider but in Unity Editor game continues playing.
Hello!
I have an issue in Rider debugging. I connect a debugger, put some breakpoint in a method which executes in the main thread. After that Rider shows me that breakpoint worked, I can see a stack trace and some variables values, but meanwhile, the game actually continues running in Unity editor. And if I press 'Step over' or anything else it looks likes if I would have pressed 'Continue'.
If I Disable external source debug option in preferences it works fine.
@oddmax Please mention Unity version, Scripting Runtime version and Rider version. Thanks
Rider 2018.1.4 Unity 2017.1.3p3 Scripting Runtime version: .NET 3.5 Equivalent API Compatibility Level: .NET 2.0 Subset
@oddmax We are about to release Rider 2018.2 including debugger fixes. Could you give it a try? Either from here https://www.jetbrains.com/rider/eap/ or via https://www.jetbrains.com/toolbox/app/ which helps maintaining several versions simultaneously.
Tried 2018.2 EAP built August 10, the issue is still present. And disabling 'Enable external source debugging' option doesn't help.
@oddmax Hello! Can you provide us with your solution? Or reproduce this problem on a simple solution?
Unfortunately, I'm not allowed because of NDA, but I will try to reproduce it in a simple solution (not sure how though).
Just found this while looking for something else ... While I can neither provide a project (> 20 GiB by now ;) ) nor do I know in what situations exactly it fails I can confirm that this issue occurs every now and then. It feels like it's specific things that trigger it, i.e. breakpoints in such specific places always fail, while other breakpoints will always work.
At least add a screenshot, when it happens, we may guess some pattern and reproduce it then.
@oddmax , @Alloc86 Does this problem reproduce only inside coroutines?
@van800 Sorry, didn't yet experience this again since I posted the message. I'm relatively confident though that at least on some instances it was not within a coroutine. Will definitely make sure to get back whenever I get this again and with more information in those cases :)
Debugging is a core Rider feature, so we can't really address much of its issues in this plugin scope. So I am closing this issue here. However if it still reproduces, please post an issue in https://youtrack.jetbrains.com/issues/RIDER