Debugging WebGL / Development build works, non-dev doesn't?

Continuing from my previous thread. I’ve gotten past the previous crashes with some varying workarounds, but I’ve now hit a new roadblock;

Specifically, I’m seeing a crash occur on ‘release’ builds, but the same crash fails to happen when in development builds. This is a bit of a catch 22 - our development builds are huge & cause their own out of memory issues in 50% of loads.

So next question - how to debug this? Unfortunately the crashes in non-developmental builds produce garbled stack traces that aren’t terribly useful, but I’m happy to provide what assistance I can. (I should note, this is back on 5.1.1p2 - 5.2.0 ended up being a dead-end as we weren’t able to get past the object deletion crash in my previous thread)

Debug.Log is your friend :slight_smile:

other than that you can try with Unity 5.1.3p3.
Perhaps try to make your development build smaller by making sure stripping is enabled. Are you using lots of external plugins? If so, try to remove what you don’t need.

Yeah unfortunately it’s a bit of a big project - few hundred KLOC, really a ‘worst case’ project I think. Been trying to Debug.Log down the causes of these various bugs, but there’s 30 minute build time on it.