作者aquarianboy (我是沒牌的營養師!)
看板Flash
標題[心得] Flash Debug Tool - FlashTracer
時間Sun Nov 11 06:26:18 2007
全文:
http://www.eddie.com.tw/blog/?p=106
Flash的debug是件痛苦的事,因為*.swf在browser中並不會丟出太多的訊息讓開發者知
道到底發生了事情,在Flash的IDE中,可以用trace()的方式把一些測試訊息傳出來,但
這在發佈成*.swf之後又看不到..
有善心人士(Alessandro Crugnola)開發了一個Firefox的外掛元件,可以讓trace()照樣
像在Flash IDE一樣把訊息傳出來,讓Flash的開發人員多了一個debug的方法。
FlashTracer addon:
http://addons.mozilla.org/firefox/3469/
原文說明如下:
While running any .swf Flash file in your browser you can see all the output
generated by the “trace” flash functions in this sidebar component.
You *NEED* the flash player debug version to run this extension correctly:
http://download.macromedia.com/pub/flashplayer/updaters/9/flashplayer_9_plug
in_debug.exe
除了安裝完FlashTracer的元件外,你可能還需要下載這個
不過後來似乎因為Flash Player有些不同,FlashTracer可能會沒法子正常運作
試著點開Firefox的工具→附加元件→找到FlashTracer的選項→修改”Select output
file”把路徑改成「C:\Documents and Settings\{YourUserName}\Application Data
\Macromedia\Flash Player\Logs\flashlog.txt」
其中{YourUserName}指的是登入名稱,請依個人電腦設定不同修改
一切安裝、設定完成,重新啟動Firefox,選擇「工具」→「Flash Tracer」(或是快速
鍵Alt+A)
如果順利的話,試試這個網址:
http://www.eddie.com.tw/FlashLabs/Examples/tracer/
如果能看到它trace()出來的資料,恭喜你安裝成功了!
感謝原作(Alessandro Crugnola)的佛心呀 :)
PS:
補充一下,其實雖然是Firefox的外掛工具,但其實IE也能用,不過IE也得裝個debug
版本的flash player,安裝完之後開啟Firefox,再把Flashtracer打開,即使在IE裡
的訊息,Flashtracer也抓得到
http://download.macromedia.com/pub/flashplayer/updaters/9/flashplayer_9_ax_debug
.exe
--
http://www.eddie.com.tw/blog/
http://www.eddie.com.tw/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.135.172.127
※ 編輯: aquarianboy 來自: 220.135.172.127 (11/11 14:40)
推 gargouille:推,這個東西真的超實用的啦!! 11/11 15:12
推 icedesign:推,不過想請教版大,swf的trace跟用Flash的IDE來trace 11/11 15:17
→ icedesign:不是都一樣嗎?那加裝這個的好處在哪裡呢? 11/11 15:17
推 aquarianboy:正式上線的時候抓bug用的 :) 11/11 15:37
推 aquarianboy:通常案子上線之後的蟲才是麻煩..因為客戶會一直追殺:) 11/12 00:20
→ icedesign:啊!我都會先自己try一下說,感謝分享! 11/12 01:24