<?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; debug</title>
	<atom:link href="http://www.ooso.net/tag/debug/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ooso.net</link>
	<description>Linux + Apache + Mysql + Php + Flash</description>
	<lastBuildDate>Thu, 19 Jan 2012 01:21:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>FirePHP &#8212; php版的firebug</title>
		<link>http://www.ooso.net/archives/424</link>
		<comments>http://www.ooso.net/archives/424#comments</comments>
		<pubDate>Tue, 17 Jun 2008 07:26:45 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[firebug]]></category>

		<guid isPermaLink="false">http://www.ooso.net/?p=424</guid>
		<description><![CDATA[在friendfeed上找到的了这个名为FirePHP的Firefox插件，是基于Firebug的一个扩展，可以用来在Firebug的console中方便的输出php的调试信息又不影响php程序的正常运行。实际上这东东出来的时间也不短了，只是以前没试用过，现在把玩了一会也挺有趣。附图一张：

FirePHP包含两个部分


				<span class="readmore"><a href="http://www.ooso.net/archives/424" title="FirePHP &#8212; php版的firebug">阅读全文（445字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://friendfeed.com">friendfeed</a>上找到的了这个名为<a href=" http://www.firephp.org/">FirePHP</a>的Firefox插件，是基于<a href="http://www.ooso.net/index.php/archives/294">Firebug</a>的一个扩展，可以用来在Firebug的console中方便的输出php的调试信息又不影响php程序的正常运行。实际上这东东出来的时间也不短了，只是以前没试用过，现在把玩了一会也挺有趣。附图一张：</p>
<p><img src="http://www.firephp.org/images/Screenshots/Sample1b.png" alt="firephp" /></p>
<h3>FirePHP包含两个部分</h3>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/6149">firefox扩展 </a></li>
<li><a href="http://www.firephp.org/DownloadRelease/FirePHPLibrary-FirePHPCore-0.0.2">php程序库 </a></li>
</ul>
<p>FirePHP的php调试信息都是通过在http头里面添加X-FirePHP-Data信息串来标识，不会直接输出到页面上，这样也就避免对php正常输出产生影响。可以输出的调试信息类型如下:</p>
<ul>
<li>正常的调试字符串，类型有LOG,INFO,WARN,ERROR几种</li>
<li>数组array</li>
<li>object</li>
<li>异常Exception</li>
<li>SQL返回数据</li>
<li>http header</li>
</ul>
<p>如果你像我一样使用的是firefox 3，那么可以<a href="http://www.firephp.org/DownloadRelease/FirePHP-FirefoxExtension-0.1.0.1">点这里下载安装FirePHP  0.1.0.1</a></p>
<p>这个版本只适用于php5，再贴个<a href="http://www.live-my-life-with-yuyi.com/blog/archives/354">网友自力更生的简化版</a>，但是功能上就弱多了，而且是通过js来输出调试信息，实用性也不强。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/424/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

