<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>小杜学习笔记 &#187; firebug</title>
	<atom:link href="http://tinydoo.cn/tag/firebug/feed" rel="self" type="application/rss+xml" />
	<link>http://tinydoo.cn</link>
	<description>记录生活学习点滴</description>
	<lastBuildDate>Thu, 10 Dec 2009 14:43:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IE下使用Firebug</title>
		<link>http://tinydoo.cn/2009/319.html</link>
		<comments>http://tinydoo.cn/2009/319.html#comments</comments>
		<pubDate>Sun, 31 May 2009 02:46:44 +0000</pubDate>
		<dc:creator>小杜</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[编程]]></category>

		<guid isPermaLink="false">http://tinydoo.cn/?p=319</guid>
		<description><![CDATA[在你的网页中加入下面的代码，将可以在IE、Opera、Safari下使用Firebug了：
[code][/code]
更多介绍：http://getfirebug.com/lite.html
]]></description>
			<content:encoded><![CDATA[<p>在你的网页中加入下面的代码，将可以在IE、Opera、Safari下使用Firebug了：<br />
[code]<script src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js" type="text/javascript"></script>[/code]<br />
更多介绍：<a href="http://getfirebug.com/lite.html">http://getfirebug.com/lite.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tinydoo.cn/2009/319.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FirePHP &#8211; Ajax和PHP开发扩展工具</title>
		<link>http://tinydoo.cn/2009/263.html</link>
		<comments>http://tinydoo.cn/2009/263.html#comments</comments>
		<pubDate>Fri, 13 Feb 2009 08:50:27 +0000</pubDate>
		<dc:creator>小杜</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firephp]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://tinydoo.cn/?p=263</guid>
		<description><![CDATA[FirePHP是一个基于Firebug的Firefox扩展插件。
他可以在不影响php程序正常运行的同时，在Firebug的console中方便的输出php的调试信息，因此对于Ajax开发是个不错的选择。面一起来看下Firephp的使用方法。
安装
1.如果你的FireFox没有Firebug这个插件的话，首先要安装Firebug这个插件，可以到其官方地址去下载：http://www.getfirebug.com/
<span class="readmore"><a href="http://tinydoo.cn/2009/263.html" title="FirePHP &#8211; Ajax和PHP开发扩展工具" target="_blank">阅读全文——共526字</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.firephp.org/" target="_blank">FirePHP</a>是一个基于<a href="https://addons.mozilla.org/firefox/addon/1843" target="_blank">Firebug</a>的Firefox扩展插件。</p>
<p>他可以在不影响php程序正常运行的同时，在Firebug的console中方便的输出php的调试信息，因此对于Ajax开发是个不错的选择。面一起来看下<a title="firephp" href="http://www.firephp.org/" target="_blank">Firephp</a>的使用方法。</p>
<p><strong>安装</strong></p>
<p>1.如果你的FireFox没有Firebug这个插件的话，首先要安装Firebug这个插件，可以到其官方地址去下载：<a class="external" title="Firebug" href="http://www.getfirebug.com/" target="_blank">http://www.getfirebug.com/</a></p>
<p>2.下载<a title="firephp" href="http://www.firephp.org/" target="_blank">Firephp</a>的php文件。并放在合适的目录。</p>
<p>3.引用fb.php, 比如：require(’FirePHPCore/fb.php’)</p>
<p> </p>
<div class="php">4.打开输出缓冲（因为<a title="firephp" href="http://www.firephp.org/" target="_blank">Firephp</a>主要用到的是header函数），有如下三种方法：</div>
<p> </p>
<div class="php">
<ul>
<li>在程序的前面加上ob_start()</li>
<li>修改php.ini 将output_buffering设为1或者on</li>
<li>修改apache的设置，在配置文件中加上php_flag output_buffering on</li>
</ul>
</div>
<p><strong>调试</strong></p>
<div class="php">可以调试输出以下数据类型：</div>
<div class="php">
<ul>
<li>字符串，可以分为LOG,INFO,WARN,ERROR四种</li>
<li>Object或者Array</li>
<li>通过sql查询返回的数据</li>
<li>抛出的异常信息</li>
<li>服务器返回的信息（不输出在console中，而是NET中</li>
</ul>
</div>
<p><strong></strong></p>
<p><strong></strong></p>
<div class="php">调试效果</div>
<div class="php"><img src="http://www.firephp.org/images/Screenshots/SimpleConsole.png" alt="" /></div>
]]></content:encoded>
			<wfw:commentRss>http://tinydoo.cn/2009/263.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
