resharper-unity icon indicating copy to clipboard operation
resharper-unity copied to clipboard

Game stops on breakpoint in Rider but in Unity Editor game continues playing.

Open oddmax opened this issue 8 years ago • 12 comments

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'.

mono-sgen_2018-08-15__16-06-22.log

oddmax avatar Aug 15 '18 14:08 oddmax

If I Disable external source debug option in preferences it works fine.

oddmax avatar Aug 15 '18 14:08 oddmax

@oddmax Please mention Unity version, Scripting Runtime version and Rider version. Thanks

van800 avatar Aug 15 '18 14:08 van800

Rider 2018.1.4 Unity 2017.1.3p3 Scripting Runtime version: .NET 3.5 Equivalent API Compatibility Level: .NET 2.0 Subset

oddmax avatar Aug 15 '18 14:08 oddmax

@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.

van800 avatar Aug 15 '18 18:08 van800

Tried 2018.2 EAP built August 10, the issue is still present. And disabling 'Enable external source debugging' option doesn't help.

oddmax avatar Aug 16 '18 13:08 oddmax

@oddmax Hello! Can you provide us with your solution? Or reproduce this problem on a simple solution?

Iliya-usov avatar Aug 16 '18 13:08 Iliya-usov

Unfortunately, I'm not allowed because of NDA, but I will try to reproduce it in a simple solution (not sure how though).

oddmax avatar Aug 16 '18 14:08 oddmax

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.

Alloc86 avatar Aug 24 '18 12:08 Alloc86

At least add a screenshot, when it happens, we may guess some pattern and reproduce it then.

van800 avatar Aug 24 '18 21:08 van800

@oddmax , @Alloc86 Does this problem reproduce only inside coroutines?

van800 avatar Sep 27 '18 13:09 van800

@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 :)

Alloc86 avatar Sep 27 '18 16:09 Alloc86

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

van800 avatar Feb 20 '19 09:02 van800