Debugging randomly hangs

Hi There,

My usual go to is to create a repro case and submit bug, however in this instance I can not reliable reproduce the hang.
I am using burst/jobs/entities, and debug with burst off.
I can debug fine sometimes, others it just hangs before even hitting a breakpoint in the editor. And other times I can step through and after x amount of breakpoints unity hangs.
I use Rider, however I suspected it could be a rider issue so tried in visual studio and ran into the same issues.

So ultimately I am not sure how to report this bug, and it’s something I’ve been struggling with since first 2020.1 alpha release. I know this also affects a friend of mine who was also using burst/jobs/entities so it’s not just me. I can see numerous reports with rider, but don’t see many with unity, and no idea where to look for Visual Studio bug reports.

Anyone else experience this or know of any workaround? Any tips on how to present this in a bug report to unity?

Not sure this has anything to do with 2020, issue exists in 19.4

It’s very annoying and I think it has to do with native containers and/or allocators

Yes very annoying for sure, now you mention it I think I did have issues back when 19.4 was in beta. There was a point before that though where I could debug entities code without hanging all the time, I think before they separated the editor tools into own packages.

I’m seeing the same thing. It works most of the time but 3/10 it hangs.

Same here. Would appreciate it having a look at by Unity or as the OP suggests, some more information on what sort of info to put into a bug report if Unity aren’t already aware of the problem?

I’ve had this since at least 2019.3 or so and maybe earlier. I don’t typically get problems in standard mono behaviour code, just DOTS.

Relying on debug logs at the moment but would love to have the debugger back.