简体   繁体   中英

AngularJS: catch error stack on production

I run my site on AngularJS and use New Relic JS errors notifications to detect errors.

I want to fix major errors, and basically did it. But I can't reproduce one error that can be logged on any page of site:

Stack trace
UncaughtException: Script error.
    in evaluated code

I tried to visit those pages with the same browser, with low-speed connection, on Mac, Windows, Ubuntu as New Relic logged. But it didn't make sense.

So, my question is there any technique that can help me to catch this error or extend information about it? It can be common JS technique or AngularJS specific.

The "Script error" message is one that it's difficult to get more details on, because the error occurred before New Relic's Javascript monitoring was able to wrap any of the script's functions. This can commonly occur during script loading, or it may mean that the error occurs during an interaction with a browser plugin or extension, or from an inline event handler.

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