how to make my phonegap android app crash?

前端 未结 9 1328
萌比男神i
萌比男神i 2021-02-05 03:27

I am developing a crash reporter plugin for phonegap android apps. For the testing purpose, I have to make my application crash & \"Unfortunately, application has stopped\"

9条回答
  •  我在风中等你
    2021-02-05 04:00

    You can try to do a infinity loop incrementally appending a string as the app starts:

    onDeviceReady: function() {
        var test = "test";
        while (true) {
            test += "--------------------";
            console.log(test);
        }
    },
    

    This will do the trick.

提交回复
热议问题