How to find out why my game crushes on Android?

Hello.

I have a simple unity 2D game that I developed and installed on my android galaxy S5. Sometimes, when I play the game all is well - I’m able to play my game from begining to end. And yet sometomes my game crashes from no obvious reason. I get a message “GameName has stopped”.

What can I do in order to figure out the problem?
How can I prevent my game from crushing at any time?

Thanks,
Bravo123.

You can try using adb command ‘logcat’ to trace your device.

How to I use adb command and what is it exactly?

go to your SDK folder and open /platform-tools/ folder, here is is the adb file.
open a terminal or cmd and go to that folder. you can go like this:

and run adb like this :
**

[quote]**
./adb
**[/quote]
**
also you can follow unity’s log like this

I used the adb command but I didn’t see anything usefull. When my game crashed I could not see any exception info. Do you know how to make the device show the stack trace like in a .Net application?