неділя, 18 грудня 2011 р.

Error notifications in debug flashplayer 11 for linux

Debug version of flashplayer 10 for Linux had one nice feature: error pop-ups with full stacktrace of an exception. This feature is broken for all linux debug versions after 10.1.82.76. In most cases error pop-up just doesn't appear. I tried to fix my ~/mm.cfg:

SuppressDebuggerExceptionDialogs = 0
ErrorReportingEnable = 1
MaxWarnings = 500
TraceOutputFileEnable = 1

It didn't help - still no error pop-ups. But with such configuration all exception (as well as trace messages) appears in ~/.macromedia/Flash_Player/Logs/flashlog.txt. So I wrote python script that checks this file and notifies me about all new exception (just like a native error popup).

I have next work environment:
Google Chrome with debug flash player 11.1.102.55 running my flash app
Terminal window with tail ~/.macromedia/Flash_Player/Logs/flashlog.txt -f
Running notify-flash-error.py

Every time I get an exception I have a nice notification popup with short error text. Then alt+tab to terminal window to view full stacktrace.

To make it work you should install libnotify:
sudo apt-get install libnotify-bin


Python script is available here

Немає коментарів: