<?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>Nerdpress.org &#187; Firebug</title>
	<atom:link href="http://www.nerdpress.org/tag/firebug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nerdpress.org</link>
	<description>^__^</description>
	<lastBuildDate>Thu, 03 May 2012 15:03:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Debuggin JSON mit JSON Views</title>
		<link>http://www.nerdpress.org/2010/11/17/debuggin-json-mit-json-views/</link>
		<comments>http://www.nerdpress.org/2010/11/17/debuggin-json-mit-json-views/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 15:37:32 +0000</pubDate>
		<dc:creator>Ivo Bathke</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Json]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=1214</guid>
		<description><![CDATA[Wer kennt das nicht: man entwickelt mit JSON, will die AJAX Rückgabe kontrollieren und macht, wie gewohnt, im Firefox den Firebug auf und checkt unter Console den AJAX Request und sieht folgendes: Nicht sehr erhellend! Total unübersichtlich! Nicht gut! Wird JSON mit dem richtigen Header ausgeliefert, unter PHP geht der so: Dann kann man ein [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Wer kennt das nicht: man entwickelt mit JSON, will die AJAX Rückgabe kontrollieren und macht, wie gewohnt, im Firefox den Firebug auf und checkt unter Console den AJAX Request und sieht folgendes:<br />
<a href="http://nerdpress.org/wp-content/uploads/2010/11/json_firebug_raw.png" rel="lightbox[post-1214]" title=""><img src="http://nerdpress.org/wp-content/uploads/2010/11/json_firebug_raw-300x70.png" alt="Json Firebug Raw-300x70 in " width="300" height="70" class="alignnone size-medium wp-image-1215" /></a><br />
Nicht sehr erhellend! Total unübersichtlich! Nicht gut!</p>
<p>Wird JSON mit dem richtigen Header ausgeliefert, unter PHP geht der so:</p>
<pre class="brush: php; title: ; notranslate">
header('Content-type: application/json');
</pre>
<p><span id="more-1214"></span></p>
<p>Dann kann man ein feines Feature von Firebug nutzen:<br />
den JSON View, dieser versteckt sich unter der Response als JSON Tab.<br />
<a href="http://nerdpress.org/wp-content/uploads/2010/11/Json_view_firebug.png" rel="lightbox[post-1214]" title=""><img src="http://nerdpress.org/wp-content/uploads/2010/11/Json_view_firebug-300x141.png" alt="Json View Firebug-300x141 in " width="300" height="141" class="alignnone size-medium wp-image-1216" /></a></p>
<p>Ja schon besser! Aber, ich wiederhole, nur mit dem richtigen Header, mit <em>text/html</em> o.ä. ist dieser Tab nicht zu sehen.</p>
<p>Nun gut, trotzdem ein bißchen eng da alles in der FireBug Hülle.<br />
Ich mach ja ganz gerne den Ajax Call in einem neuen Tab auf, um zu sehen ob alles drin ist.<br />
Dann empfiehlt sich ein Firefox AddOn: <a href="https://addons.mozilla.org/de/firefox/addon/10869/">JSONView</a></p>
<p>Dies rendered das JSON schön im Firefox, wenn , Ihr habts erraten, der Header stimmt: <strong>application/json</strong> !<br />
<a href="http://nerdpress.org/wp-content/uploads/2010/11/JSONViewer.png" rel="lightbox[post-1214]" title=""><img src="http://nerdpress.org/wp-content/uploads/2010/11/JSONViewer-300x183.png" alt="JSONViewer-300x183 in " width="300" height="183" class="alignnone size-medium wp-image-1217" /></a><br />
So ist gut!</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.nerdpress.org/2010/11/17/debuggin-json-mit-json-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s closure Tools jetzt opensource</title>
		<link>http://www.nerdpress.org/2009/11/06/googles-closure-tools-jetzt-opensource/</link>
		<comments>http://www.nerdpress.org/2009/11/06/googles-closure-tools-jetzt-opensource/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 15:09:12 +0000</pubDate>
		<dc:creator>Max Girkens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[closure]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=516</guid>
		<description><![CDATA[Google wirft seine Closure Tools in den open source Topf. Das ist einmal die Closure Library, ein JS Framework. Wenn ich das auf den ersten Blick richtig erkannt habe, geht das in eine ähnliche Richtung wie zb. jQuery UI. Der Closure Compiler ist ein Javascript Optimizer der Code viel viel viel schneller machen soll. Um [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Google <a href="http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html">wirft</a> seine Closure Tools in den open source Topf.</p>
<p>Das ist einmal die <a href="http://code.google.com/closure/library">Closure Library</a>, ein JS Framework. Wenn ich das auf den ersten Blick richtig erkannt habe, geht das in eine ähnliche Richtung wie zb. jQuery UI.</p>
<p>Der <a href="http://code.google.com/closure/compiler">Closure Compiler</a> ist ein Javascript Optimizer der Code viel viel viel schneller machen soll.<br />
Um den dann auch weiterhin debuggen zu können gibt es den <a href="http://code.google.com/closure/compiler/docs/inspector.html">Closure Inspector</a> in Form einer Firebug Extension direkt dazu.<span id="more-516"></span></p>
<p>Desweiteren gehören auch noch die <a href="http://code.google.com/closure/templates">Closure Templates</a> zu dem Release, ein &#8220;sprachunabhängiges&#8221; Template System.</p>
<p>Mindestens die ersten beiden davon klingen durchaus interessant, vor allem wenn der Compiler mal hält was google verspricht.</p>
<blockquote><p>The compiler removes dead code, then rewrites and minimizes what&#8217;s left so that it will run fast on browsers&#8217; JavaScript engines. The compiler also checks syntax, variable references, and types, and warns about other common JavaScript pitfalls. These checks and optimizations help you write apps that are less buggy and easier to maintain.</p></blockquote>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.nerdpress.org/2009/11/06/googles-closure-tools-jetzt-opensource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP debug Ausgaben in Ajax Responses mit FirePHP</title>
		<link>http://www.nerdpress.org/2009/10/03/php-debug-ausgaben-in-ajax-responses-mit-firephp/</link>
		<comments>http://www.nerdpress.org/2009/10/03/php-debug-ausgaben-in-ajax-responses-mit-firephp/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 10:15:20 +0000</pubDate>
		<dc:creator>Max Girkens</dc:creator>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=330</guid>
		<description><![CDATA[eine weitere Supererweiterung für Firebug ist meiner Meinung nach FirePHP. Das Tool ermöglicht PHP (debug)Ausgaben direkt an die Firebug Konsole zu schicken: installieren lässt sich das Ding beqeum via pear: einbinden dann so: dann solche Dinge tun: auch sehr schön. Logging in Tabellenform: oder auch Tracing: Traces You can send a backtrace showing File, Line, [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>eine weitere Supererweiterung für <a href="https://addons.mozilla.org/de/firefox/addon/1843">Firebug</a> ist meiner Meinung nach <a href="http://firephp.org/">FirePHP</a>.</p>
<p><img class="alignnone size-full wp-image-396" src="http://nerdpress.org/wp-content/uploads/2009/10/SimpleConsole.png" alt="SimpleConsole in " width="310" height="151" /></p>
<p>Das Tool ermöglicht PHP (debug)Ausgaben direkt an die Firebug Konsole zu schicken:<span id="more-330"></span></p>
<pre class="brush: php; title: ; notranslate">

FB::log('Log message');

FB::info('Info message');

FB::warn('Warn message');

FB::error('Error message');
</pre>
<p>installieren lässt sich das Ding beqeum via pear:</p>
<pre class="brush: bash; title: ; notranslate">

pear channel-discover pear.firephp.org
pear install firephp/FirePHPCore
</pre>
<p>einbinden dann so:</p>
<pre class="brush: php; title: ; notranslate">

// object oriented API
require_once('FirePHPCore/FirePHP.class.php');
$firephp = FirePHP::getInstance(true);
$firephp-&gt; *

require_once('FirePHPCore/fb.php');
FB:: *
</pre>
<p>dann solche Dinge tun:</p>
<pre class="brush: php; title: ; notranslate">

$firephp-&gt;setEnabled(false);  // or FB::

$firephp-&gt;log('Plain Message');     // or FB::
$firephp-&gt;info('Info Message');     // or FB::
$firephp-&gt;warn('Warn Message');     // or FB::
$firephp-&gt;error('Error Message');   // or FB::
</pre>
<p>auch sehr schön. Logging in Tabellenform:</p>
<pre class="brush: php; title: ; notranslate">
$table   = array();
$table[] = array('Col 1 Heading','Col 2 Heading');
$table[] = array('Row 1 Col 1','Row 1 Col 2');
$table[] = array('Row 2 Col 1','Row 2 Col 2');
$table[] = array('Row 3 Col 1','Row 3 Col 2');

$firephp-&gt;table('Table Label', $table);  // or FB::

fb($table, 'Table Label', FirePHP::TABLE);
</pre>
<p>oder auch Tracing:</p>
<blockquote><p><strong>Traces</strong><br />
You can send a backtrace showing <em>File</em>, <em>Line</em>, <em>Class</em>, <em>Method</em> and <em>Function</em> information including <em>Arguments</em> to clearly show the execution path up to the point in your code where you triggered the trace.</p></blockquote>
<pre class="brush: php; title: ; notranslate">
$firephp-&gt;trace('Trace Label');  // or FB::

fb('Trace Label', FirePHP::TRACE);
</pre>
<p>uswusw.</p>
<p>uuund:<br />
Es gibt auch ein <a href="http://www.symfony-project.org/plugins/sfFirePHPPlugin">Symfony Plugin</a> dafür.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.nerdpress.org/2009/10/03/php-debug-ausgaben-in-ajax-responses-mit-firephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JS Unit Testing mit FireUnit &#8211; JavaScript Unit Testing Extension</title>
		<link>http://www.nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/</link>
		<comments>http://www.nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 12:28:16 +0000</pubDate>
		<dc:creator>Max Girkens</dc:creator>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[test driven development]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=317</guid>
		<description><![CDATA[FireUnit ist eine Extension für eine Extension. Für Firebug nämlich. Damit lassen sich dann ziemlich komfortabel Javascript Unit Tests machen. Der Funktionsumfang ist überschaubar, was mir das Ding auf Anhieb sympathisch macht. true / false Tests und String compare: Regex String Compare: und die Ergebnisse in der Firebug Konsole anzeigen: &#8230; was dann so aussieht: [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p><a href="http://fireunit.org/">FireUnit</a> ist eine Extension für eine Extension. Für <a href="https://addons.mozilla.org/de/firefox/addon/1843">Firebug</a> nämlich.<br />
Damit lassen sich dann ziemlich komfortabel Javascript Unit Tests machen.</p>
<p>Der Funktionsumfang ist überschaubar, was mir das Ding auf Anhieb sympathisch macht.</p>
<p>true / false Tests und String compare:</p>
<pre class="brush: jscript; title: ; notranslate">

if ( typeof fireunit === &quot;object&quot; ) {
// Simple true-like/false-like testing
fireunit.ok( true, &quot;I'm going to pass!&quot; );
fireunit.ok( false, &quot;I'm going to fail!&quot; );

// Compare two strings - shows a diff of the
// results if they're different
fireunit.compare(
&quot;The lazy fox jumped over the log.&quot;,
&quot;The lazy brown fox jumped the log.&quot;,
&quot;Are these two strings the same?&quot;
);

}
</pre>
<p><span id="more-317"></span></p>
<p>Regex String Compare:</p>
<pre class="brush: jscript; title: ; notranslate">

if ( typeof fireunit === &quot;object&quot; ) {

// Compare a string using a regular expression
fireunit.reCompare(
&quot;The .* fox jumped the log.&quot;,
&quot;The lazy brown fox jumped the log.&quot;,
&quot;Compare a string using a RegExp.&quot;
);

}
</pre>
<p>und die Ergebnisse in der Firebug Konsole anzeigen:</p>
<pre class="brush: jscript; title: ; notranslate">

if ( typeof fireunit === &quot;object&quot; ) {

// Display the total results
fireunit.testDone();

}
</pre>
<p>&#8230; was dann so aussieht:</p>
<p><img class="alignnone size-full wp-image-325" src="http://nerdpress.org/wp-content/uploads/2009/10/Bild-2.png" alt="Bild-2 in " width="498" height="235" /></p>
<p>nice.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

