<?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>Werx Limited &#187; debugging</title>
	<atom:link href="http://werxltd.com/wp/tag/debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://werxltd.com/wp</link>
	<description>We make IT work.</description>
	<lastBuildDate>Wed, 08 Sep 2010 17:00:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Console.log is your friend</title>
		<link>http://werxltd.com/wp/2009/05/28/consolelog-is-your-friend/</link>
		<comments>http://werxltd.com/wp/2009/05/28/consolelog-is-your-friend/#comments</comments>
		<pubDate>Thu, 28 May 2009 17:18:31 +0000</pubDate>
		<dc:creator>wes</dc:creator>
				<category><![CDATA[software development]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://werxltd.com/wp/?p=31</guid>
		<description><![CDATA[Although it only works in Chrome and FireBug, I&#8217;ve found console.log() to be an extremely handy tool for debugging javascript without having to step through code. Here&#8217;s a bit of code I&#8217;ve found handy to make sure browsers without console.log don&#8217;t bomb out in case you forget to take your console.log statements out: if (window.console [...]]]></description>
			<content:encoded><![CDATA[<p>Although it only works in <a href="http://www.google.com/chrome">Chrome</a> and <a href="http://getfirebug.com/">FireBug</a>, I&#8217;ve found <a href="http://getfirebug.com/console.html">console.log()</a> to be an extremely handy tool for debugging javascript without having to step through code.</p>
<p>Here&#8217;s a bit of code I&#8217;ve found handy to make sure browsers without console.log don&#8217;t bomb out in case you forget to take your console.log statements out:</p>
<pre class="brush:javascript">if (window.console == undefined) { window.console = {log:function(){},dir:function(){}}; }</pre>
<p>Make sure to add this near the top of your scripts and you&#8217;ll be able to use console.log without fear of it causing problems in browsers like IE.</p>
]]></content:encoded>
			<wfw:commentRss>http://werxltd.com/wp/2009/05/28/consolelog-is-your-friend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
