<?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>Delivering Quality &#187; Firebug</title>
	<atom:link href="http://www.markdeepwell.com/tag/firebug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markdeepwell.com</link>
	<description>A Software Developers View of the World</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:44:04 +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>Firebug: The JavaScript Debugger</title>
		<link>http://www.markdeepwell.com/2009/10/firebug-the-javascript-debugger/</link>
		<comments>http://www.markdeepwell.com/2009/10/firebug-the-javascript-debugger/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 05:08:26 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Software Tools]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox Extension]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.markdeepwell.com/?p=291</guid>
		<description><![CDATA[JavaScript is a core language of many web developers and a necessary component for any modern web application; therefore having an excellent JavaScript debugger and knowing how to use it effectively is key to fixing bugs faster. Fixing bugs faster also makes you a happier software developer! I recommend Firebug, which is a JavaScript debugger, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">JavaScript is a core language of many web developers and a necessary component for any modern web application; therefore having an excellent JavaScript debugger and knowing how to use it effectively is key to fixing bugs faster. Fixing bugs faster also makes you a happier software developer!</p>
<p style="text-align: left;">I recommend <a href="http://getfirebug.com/">Firebug</a>, which is a JavaScript debugger, a real-time HTML, CSS, DOM, and JavaScript editor, and a network monitor.</p>
<h1 style="text-align: left;">Logging</h1>
<p>One of the most useful features are the <a href="http://getfirebug.com/console.html">logging functions</a> through console.log which can simply be used to output a string or object:<br />
<code><br />
console.log('Testing log output: ', myObject);<br />
</code><br />
This will output your message and the full object available for inspection in the Firebug console tab. In addition to console.log, there is also console.warn, console.error, and more. See the <a href="http://getfirebug.com/console.html">Firebug documentation</a> for more info.</p>
<p>Be careful to remove the statements from your code before deploying it, because your users won&#8217;t have Firebug installed, and JavaScript will then fail when it tries to output to the console object. Also, you certainly don&#8217;t want users to see your debug output.</p>
<div id="attachment_297" class="wp-caption alignnone" style="width: 498px"><img class="size-full wp-image-297 " title="firebug logger" src="http://www.markdeepwell.com/wp-content/uploads/2009/10/firebug-logger.jpg" alt="firebug logger" width="488" height="164" /><p class="wp-caption-text">console.log in action</p></div>
<h1>Breakpoints</h1>
<p>Pausing scripts to investigate the system at a current point in time can be very valuable in solving bugs. To use the breakpoint feature click just to the left of a JavaScript line. This will set a breakpoint and make a red dot appear.</p>
<p>You can also add a conditional breakpoint by right clicking on a line number. Now the program will only pause under your specified condition.</p>
<div id="attachment_296" class="wp-caption alignnone" style="width: 405px"><img class="size-full wp-image-296 " title="firebug breakpoint" src="http://www.markdeepwell.com/wp-content/uploads/2009/10/20091012-e798upemuhaiy18esaxmpheqtm.jpg" alt="firebug breakpoint" width="395" height="163" /><p class="wp-caption-text">Setting a breakpoint</p></div>
<h1>JavaScript Errors</h1>
<p>Firebug will print out JavaScript errors with the corresponding file and line number. An absolute must for any JavaScript development.</p>
<div id="attachment_305" class="wp-caption alignnone" style="width: 525px"><img class="size-full wp-image-305" title="firebug javascript error" src="http://www.markdeepwell.com/wp-content/uploads/2009/10/firebug-javascript-error.jpg" alt="firebug javascript error" width="515" height="157" /><p class="wp-caption-text">A JavaScript Error</p></div>
<p>Those are the key feature I use most often, but there are many more <a href="http://getfirebug.com/js.html">JavaScript features in Firebug</a>, including stack traces, watching expressions, profiling and viewing events.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Download Firebug now</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markdeepwell.com/2009/10/firebug-the-javascript-debugger/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
