On Android if a NullReferenceException occurs while the debugger is attached, the entire game will crash and the debugger attach without any information.
Without the debugger attached, the game will continue as normal.
This is only when actually deploying to a real device. I’ve tested on about 6 different devices and they are all the same.
I’ve opened up a little sample unity project and attempted to access a null game object and the entire game crashes on Android with debugger present.
Testing on a PC build, this doesn’t happen and Mono Develop/Visual Studio 2015 will both catch the exception properly.
(I’ve tested both Mono Develop and VS2015 debugging as well as IL2CPP mode).
Took me a long while to figure out what was going on in our Android version because of this bug and it’s going to make debugging on Android extremely difficult to track down where problems like this occur.
Any help/advice would be greatly appreciated