<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Firebug on 小惡魔 - AppleBOY</title><link>https://blog.wu-boy.com/tags/firebug/</link><description>Recent content in Firebug on 小惡魔 - AppleBOY</description><generator>Hugo</generator><language>en-us</language><managingEditor>appleboy.tw@gmail.com (Appleboy)</managingEditor><webMaster>appleboy.tw@gmail.com (Appleboy)</webMaster><lastBuildDate>Thu, 02 Feb 2012 03:44:26 +0000</lastBuildDate><atom:link href="https://blog.wu-boy.com/tags/firebug/feed.xml" rel="self" type="application/rss+xml"/><item><title>Web Developer Tools in FireFox 10</title><link>https://blog.wu-boy.com/2012/02/web-developer-tools-in-firefox-10/</link><pubDate>Thu, 02 Feb 2012 03:44:26 +0000</pubDate><author>appleboy.tw@gmail.com (Appleboy)</author><guid>https://blog.wu-boy.com/2012/02/web-developer-tools-in-firefox-10/</guid><description>&lt;p&gt;在美國時間 2012/01/31 &lt;a href="http://www.mozilla.org/" target="_blank"&gt;FireFox&lt;/a&gt; 發佈 10.0 版本，大家可以參考 &lt;a href="http://www.mozilla.org/en-US/firefox/10.0/releasenotes/" target="_blank"&gt;Release Note&lt;/a&gt;，其實對於網頁程式設計師最大的福音就是 Firefox 內建 Web Develop Tool，以後不必在安裝 &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/firebug/" target="_blank"&gt;FireBug Addon&lt;/a&gt;，就可以任意查詢網頁 Element 功能，大家可以參考底下 Mozilla 所製作的影片以及快速瀏覽 &lt;a href="https://developer.mozilla.org/en/Tools/Page_Inspector/Style_panel" target="_blank"&gt;CSS properties&lt;/a&gt;。 不多說了看完影片直接打開 FireFox，按下快捷鍵 &lt;strong&gt;&lt;span style="color:green"&gt;Ctrl+Shift+I&lt;/span&gt;&lt;/strong&gt; 就可以開始嘗試 Firfox 內建 Web Develop Tool。 Ref: &lt;a href="http://www.techrepublic.com/blog/australia/firefox-10-tooling-closes-in-on-firebug/642" target="_blank"&gt;Firefox 10 tooling closes in on Firebug&lt;/a&gt; &lt;a href="http://blog.mozilla.com/blog/2012/01/31/firefox-adds-powerful-new-developer-tools/" target="_blank"&gt;Firefox Adds Powerful New Developer Tools&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Using firebug for firefox 除錯 javascript</title><link>https://blog.wu-boy.com/2010/01/using-firebug-for-firefox-%E9%99%A4%E9%8C%AF-javascript/</link><pubDate>Tue, 05 Jan 2010 15:57:34 +0000</pubDate><author>appleboy.tw@gmail.com (Appleboy)</author><guid>https://blog.wu-boy.com/2010/01/using-firebug-for-firefox-%E9%99%A4%E9%8C%AF-javascript/</guid><description>&lt;p&gt;在 Web 程式設計，不管是 html 或者是 CSS、甚至 javascript，都可以利用 &lt;a href="https://addons.mozilla.org/en-US/firefox/"&gt;FireFox Plugin&lt;/a&gt;: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1843"&gt;firebug&lt;/a&gt; 來除錯，順便推薦另一套 Web Develper 工具：&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/60"&gt;Web Developer 1.1.8&lt;/a&gt;，這兩套都可以玩看看，在網路看自己&lt;a href="http://www.ee.ndhu.edu.tw"&gt;東華電機&lt;/a&gt;學長 &lt;a href="http://inet6.blogspot.com/"&gt;gasolin&lt;/a&gt; 寫過一篇：&lt;a href="http://inet6.blogspot.com/2007/02/3-firebug.html?obref=obinsite"&gt;3 分鐘學會用 firebug 除錯&lt;/a&gt; ，裡面有一個影片，建議大家看看：&lt;a href="http://www.digitalmediaminute.com/screencast/firebug-js/"&gt;影片&lt;/a&gt;，如何利用 firebug 來對 javaascript 除錯，介紹了 firebug 優點。底下整理我看到的內容&lt;/p&gt;
&lt;h2 id="1-利用-consolelog-來針對變數除錯-以往都是利用-windowalert-的方式來看看變數是否正確現在只要在-javascript-裡面加入-consolelog-針對不同變數取值出來觀看"&gt;1. 利用 console.log() 來針對變數除錯 以往都是利用 window.alert() 的方式來看看變數是否正確，現在只要在 javascript 裡面加入 console.log() 針對不同變數取值出來觀看&lt;/h2&gt;
&lt;pre class="brush: jscript; title: ; notranslate" title=""&gt;&lt;/pre&gt; 輸出會顯示： 
&lt;pre class="brush: bash; title: ; notranslate" title=""&gt;a is test
[1, 2, 3, 4]&lt;/pre&gt;
&lt;h2 id="2-印出有圖示的訊息-consoleinfoconsolewarnconsoleerror"&gt;2. 印出有圖示的訊息 console.info/console.warn/console.error&lt;/h2&gt;
&lt;pre class="brush: jscript; title: ; notranslate" title=""&gt;&lt;/pre&gt; 這功能跟 console.log 差不多，只有差在前面有圖示符號，請看下圖： 
&lt;p&gt;&lt;a href="https://www.flickr.com/photos/appleboy/4247585921/" title="firebug_01 (by appleboy46)"&gt;&lt;img src="https://i2.wp.com/farm5.static.flickr.com/4039/4247585921_8063dedd60.jpg?resize=500%2C126&amp;#038;ssl=1" title="firebug_01 (by appleboy46)" alt="firebug_01 (by appleboy46)" data-recalc-dims="1" /&gt;&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>