简体   繁体   中英

Catching uncaught exceptions

In my workplace we are mantaining a lot of ecommerce websites, some coded better than others. On some of those, sometimes uncaught exceptions are thrown, and showed by the alertbox from the flash player debug (If you have it installed).

To rise the average user experience I'd like to report all those exceptions throught a in house tool we already have.

Is there a way to catch those exceptions? Maybe the flash player debug exposes them to javascript, or in some other way.

See this Flex SO question , particularly its update pointing to uncaughtErrorEvents .

Essentially, no. But eventually, yes.

they ARE logged

http://blog.flexexamples.com/2007/08/26/debugging-flex-applications-with-mmcfg-and-flashlogtxt/ (Windows vista and 7 location is C:\\users\\username\\mm.cfg)

But the default logs don't really give much info. However, you may be able to find more info with one of the undocument features of mmcfg: http://jpauclair.net/2010/02/10/mmcfg-treasure/

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