<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">
	<channel>
		<language>en_GB</language>
		<title>Articles Tagged with &quot;Bugs&quot;</title>
		<link>http://tobyinkster.co.uk/tag/bugs/</link>
		<description></description>
		<item>
			<title>12/08/2007: PHP Debugging with Style -OR- How I Learned to Stop Worrying and Love the Bug</title>
			<link>http://tobyinkster.co.uk/blog/2007/08/12/php-debugging-with-style/</link>
			<description>&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;lets you &lt;a href=&quot;http://www.php.net/set-error-handler&quot;&gt;define your own error handler&lt;/a&gt;, so I decided to get a bit fancy. MegaErrorHandler (&lt;a href=&quot;http://groups.google.com/groups?q=spacegirl+meh&quot;&gt;&lt;span class=&quot;caps&quot;&gt;MEH&lt;/span&gt;&lt;/a&gt;) outputs its errors as specially-formatted &lt;span class=&quot;caps&quot;&gt;HTML &lt;/span&gt;comments, with the details of the error encoded using &lt;a href=&quot;http://json.org/&quot;&gt;&lt;span class=&quot;caps&quot;&gt;JSON&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A small client-side script, with an associated stylesheet then pulls this data out of the comments and formats it as a nice little interactive bug-viewing console, allowing you to view a stack trace for each bug, inspect superglobals, view the syntax-highlighted source code for the file where the error occurred, check the list of defined constants and other useful things&amp;#8230;&lt;/p&gt;</description>
		</item>
	</channel>
</rss>
