顯示具有 firefox 標籤的文章。 顯示所有文章
顯示具有 firefox 標籤的文章。 顯示所有文章

2011年12月12日 星期一

FlashBug(Firefox Add Ons)

開發程式看Log是一般debug的最常使用的一種途徑

在flash中一般即是使用trace,不過trace只在執行在debug mode

對於release版的的swf我們就只能透過log到file來看

使用log機制預設是會寫到flashlog.txt的這個檔案

之前寫過一篇 Location of flashlog.txt

要找起來還真有點眼花

今天來介紹一下  firebug的姐妹作(不是哪群作者作的) flashbug

這個插件是要附掛在firebug之中的

image

安裝好了會如上圖附加了幾個選項

  1. Flash Console
  2. Flash Inspector
  3. Flash Decompiler
  4. Share Object

【Flash Console】

  • 點擊【Clear】即會清掉所印出來的Log
  • 點擊【Open】即會直接到該OS預設的FlashLog.txt打開
  • 若是在我們的flash中有安插Log的程式碼,在這個項目下的【Trace Log】可看到相關的Log
  • 在此一項目下【Policy Log】可查到關於網路或檔案的存取政策

【Flash Inspector】

不大會使用,也一直沒機會用到,暫時就不介紹,待有機用到會用時再來說明

【Flash Deompiler】

這個項目的不像其它的販售版的Decompiler一樣可以看到該swf的程式碼怎麼寫的

只能看到這個swf的一些基本資訊而以

image

在右方的視窗中可看到每個flash中的每個物件

image

有的物件還可輸出

image

圖形輸出格式為  .svg 或是 .png

 

【Shared Object】

使用這個項目即可觀查,若是此swf有使用到shared object寫入一些cache的內容

 

總之這個工作簡化了很多在flash追踪內容的工具,我想有在開發flash的朋友都應該安裝吧?!

不過因為這個plugin是一個獨立者開發的,所以若是ff升級了,有時就要等開發開發新的plugin來配合新的ff

前一陣升級ff,著實讓筆者等了一陣了才有新版本裝在新版的ff上

開發者在該頁上有要大家捐獻 $3塊錢,有人捐錢確實是讓人供獻的更有動力

2010年6月30日 星期三

flashplayer debug mode on firefox got crash error (Firefox上flashplayer 一直當機)

最近使用Firefox在寫Flex在debug mode,正在專注要看varible的變化
結果就flash就當機了
google了一下 找到T客邦的這篇文章

外掛當機,本尊沒事的Firefox 3.6.4來了
總結了一下
我做的小修改
主要就是在 firefox 叫出 about:config 後 篩選條件 dom.ipc.plugins.enabled
其中 dom.ipc.plugins.enabled.npswf32.dll; 應該是關連 flashplayer的把它關掉就不會再當機啦
T客邦中另外提到可以下 about:crashes 看一下當機紀錄,還看不是很懂
再者就是 http://www.mozilla.com/en-US/plugincheck/ 可以 check一下firefox裝了哪些plugin

2011/05/06 updated

In 4.0.1 version cant’ got above option
need to search below attribute
dom.ipc.plugins.timeoutSecs
and set the value to –1
 
2011/07/20 updated
In 5.0 version occur this error
發現容易停止回應的程式碼(Script)  [In engilish is unresponsive script warning]
need to setup another attribute
dom.max_script_run_time
and set the value to 20
if can’t find out this attribute ,create new attribute as above

reference link:

http://kb.mozillazine.org/Unresponsive_Script_Warning   <= offcial(english)

http://tw.knowledge.yahoo.com/question/question?qid=1608040905384 <= yahoo+(chinese)