How to debug app when it's killed

前端 未结 3 814
予麋鹿
予麋鹿 2021-01-12 17:04

My app has a bug on certain activities: when it restarts (when it\'s killed and then opened again with multitasker), it crashes. I assume it has something to do with my sing

3条回答
  •  误落风尘
    2021-01-12 17:49

    If you use your singleton class to preload some data the instance will be destroyed when you kill your application so you will have to reload the data that your singleton needs.

    You can also add Raygun which will catch all exceptions and send it to server where you will be able to view the exception details.

    You can get it from nuget: Mindscape.Raygun4Net 5.3.0

提交回复
热议问题