简体   繁体   中英

Angular app crashes in Android browser

My angular app works fine in Chrome but when I open it with the Android Browser on a Samsung phone (com.sec.android.app.sbrowser), it crashes.

I tried Remote Debugging with Chrome to find out what's going wrong, but the Console basically just says ERROR in main-client.js. I can pretty-print main-client.js and see where the error is reported (see screenshot), but that doesn't really help...

在此处输入图片说明

What could be the problem here? Or what can I do to investigate this further?

  1. Create a breakpoint in line 3307 (see screenshot above).
  2. Investigate error variable e using the watch window.

Using the error details I got this way I was able to understand the source of the problem and fix it. I was a bit surprised that these error details were not dumped to the console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM