<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Debugging Live&#160;Queries</title>
	<atom:link href="http://particletree.com/notebook/debugging-live-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://particletree.com/notebook/debugging-live-queries/</link>
	<description>Everyone needs a hug.</description>
	<lastBuildDate>Mon, 16 Nov 2009 21:43:07 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cody Mays</title>
		<link>http://particletree.com/notebook/debugging-live-queries/comment-page-1/#comment-5549</link>
		<dc:creator>Cody Mays</dc:creator>
		<pubDate>Sat, 16 Dec 2006 21:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=244#comment-5549</guid>
		<description>&lt;p&gt;I would just use a custom error handler and log the error message and stack dump to a file/database. Emailing gets annoying. This article does get people thinking though. :)&lt;/p&gt;

&lt;p&gt;~Cody
www.threadbound.com&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I would just use a custom error handler and log the error message and stack dump to a file/database. Emailing gets annoying. This article does get people thinking though. :)</p>

<p>~Cody
<a href="http://www.threadbound.com" rel="nofollow">http://www.threadbound.com</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Curt Sampson</title>
		<link>http://particletree.com/notebook/debugging-live-queries/comment-page-1/#comment-2402</link>
		<dc:creator>Curt Sampson</dc:creator>
		<pubDate>Wed, 25 Oct 2006 09:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=244#comment-2402</guid>
		<description>&lt;p&gt;If you&#039;re worried about lots of mail messages going out, a better way to deal with this sort of thing might be to hook it in to your network monitoring system. When the status of your &quot;database queries&quot; object in the monitoring system goes yellow (or red, or whatever), you can have the monitoring system deal with sending an e-mail, escalating appropriately, and so on. Click on it to see the issues, and the deal with them as necessary, and clear the alert.&lt;/p&gt;

&lt;p&gt;For this particular thing, though, I have to say I&#039;ve not over the past few years been having database queries fail in production. I attribute this to a couple of things: using PostgreSQL with appropriate constraints (so that it&#039;s not possible for invalid data to get into the DB), and a comprehensive automated test framework that ensures that every query is well tested.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If you&#8217;re worried about lots of mail messages going out, a better way to deal with this sort of thing might be to hook it in to your network monitoring system. When the status of your &#8220;database queries&#8221; object in the monitoring system goes yellow (or red, or whatever), you can have the monitoring system deal with sending an e-mail, escalating appropriately, and so on. Click on it to see the issues, and the deal with them as necessary, and clear the alert.</p>

<p>For this particular thing, though, I have to say I&#8217;ve not over the past few years been having database queries fail in production. I attribute this to a couple of things: using PostgreSQL with appropriate constraints (so that it&#8217;s not possible for invalid data to get into the DB), and a comprehensive automated test framework that ensures that every query is well tested.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Campbell</title>
		<link>http://particletree.com/notebook/debugging-live-queries/comment-page-1/#comment-2401</link>
		<dc:creator>Ryan Campbell</dc:creator>
		<pubDate>Wed, 25 Oct 2006 01:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=244#comment-2401</guid>
		<description>&lt;p&gt;I agree that early on errors come in clumps, but it tends to slow down. It would actually make sense to add the ability to turn emailing on and off for specific files. If a feature is just released, you may want to turn them off until a lot of testing has occured. But for stable portions of a product, I imagine the amount of emails would still be reasonable.&lt;/p&gt;

&lt;p&gt;I also find that known bugs in stable portions of the product will get fixed faster if I am reminded 20 times a day via email that a problem happened.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I agree that early on errors come in clumps, but it tends to slow down. It would actually make sense to add the ability to turn emailing on and off for specific files. If a feature is just released, you may want to turn them off until a lot of testing has occured. But for stable portions of a product, I imagine the amount of emails would still be reasonable.</p>

<p>I also find that known bugs in stable portions of the product will get fixed faster if I am reminded 20 times a day via email that a problem happened.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Edward Z. Yang</title>
		<link>http://particletree.com/notebook/debugging-live-queries/comment-page-1/#comment-2400</link>
		<dc:creator>Edward Z. Yang</dc:creator>
		<pubDate>Wed, 25 Oct 2006 00:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=244#comment-2400</guid>
		<description>&lt;p&gt;I also use debug_backtrace() trickery to grab the line and file: saves you from having to manually pass the constants. However, I use it for a different purpose...&lt;/p&gt;

&lt;p&gt;Schlossnagle has this to say about emailing errors (and I paraphrase): The thing about it is that errors tend to occur in clumps. That means that your nifty error handler might end up sending 1000 emails to you before you get in and shut it off. RSS might make more sense, but then again, what you&#039;d probably want to do is log the error, and then have the RSS generator parse the log.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I also use debug_backtrace() trickery to grab the line and file: saves you from having to manually pass the constants. However, I use it for a different purpose&#8230;</p>

<p>Schlossnagle has this to say about emailing errors (and I paraphrase): The thing about it is that errors tend to occur in clumps. That means that your nifty error handler might end up sending 1000 emails to you before you get in and shut it off. RSS might make more sense, but then again, what you&#8217;d probably want to do is log the error, and then have the RSS generator parse the log.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://particletree.com/notebook/debugging-live-queries/comment-page-1/#comment-2399</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 24 Oct 2006 22:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=244#comment-2399</guid>
		<description>&lt;p&gt;Simple but sweet.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Simple but sweet.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Wouter</title>
		<link>http://particletree.com/notebook/debugging-live-queries/comment-page-1/#comment-2398</link>
		<dc:creator>Wouter</dc:creator>
		<pubDate>Tue, 24 Oct 2006 20:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://s2462.gridserver.com/wordpress/?p=244#comment-2398</guid>
		<description>&lt;p&gt;I&#039;d like to use &lt;a href=&quot;http://www.php.net/set_error_handler&quot; rel=&quot;nofollow&quot;&gt;set_error_handler&lt;/a&gt; to overrule the default error handler and create my own. This way, I can show an &quot;oops something bad happened&quot; page, while (possibly) mailing me and fellow developers an extensive error report.&lt;/p&gt;

&lt;p&gt;By overriding PHP&#039;s error handler you&#039;ll also get the line number and besides that even more handy information like the error type (warning, notice, etc) and file in which the error occured. In combination with the &lt;a href=&quot;http://www.php.net/debug_backtrace&quot; rel=&quot;nofollow&quot;&gt;debug_backtrace function()&lt;/a&gt; in PHP, you can make some excellent custom error handlers.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;d like to use <a href="http://www.php.net/set_error_handler" rel="nofollow">set_error_handler</a> to overrule the default error handler and create my own. This way, I can show an &#8220;oops something bad happened&#8221; page, while (possibly) mailing me and fellow developers an extensive error report.</p>

<p>By overriding PHP&#8217;s error handler you&#8217;ll also get the line number and besides that even more handy information like the error type (warning, notice, etc) and file in which the error occured. In combination with the <a href="http://www.php.net/debug_backtrace" rel="nofollow">debug_backtrace function()</a> in PHP, you can make some excellent custom error handlers.</p>]]></content:encoded>
	</item>
</channel>
</rss>
