<?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>Firebug | Nerdpress.org</title>
	<atom:link href="https://nerdpress.org/tag/firebug/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Wed, 17 Nov 2010 15:37:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Debuggin JSON mit JSON Views</title>
		<link>https://nerdpress.org/2010/11/17/debuggin-json-mit-json-views/</link>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Wed, 17 Nov 2010 15:37:32 +0000</pubDate>
				<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">https://nerdpress.org/?p=1214</guid>

					<description><![CDATA[<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: Nicht sehr erhellend! Total unübersichtlich! Nicht gut! Wird JSON mit dem richtigen Header ausgeliefert, unter PHP geht der so: Dann kann man ein &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2010/11/17/debuggin-json-mit-json-views/" class="more-link">Continue reading<span class="screen-reader-text"> "Debuggin JSON mit JSON Views"</span></a></p>
The post <a href="https://nerdpress.org/2010/11/17/debuggin-json-mit-json-views/">Debuggin JSON mit JSON Views</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<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="https://nerdpress.org/wp-content/uploads/2010/11/json_firebug_raw.png"><img decoding="async" src="https://nerdpress.org/wp-content/uploads/2010/11/json_firebug_raw-300x70.png" alt="" title="JSON Firebug Raw View" 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="https://nerdpress.org/wp-content/uploads/2010/11/Json_view_firebug.png"><img decoding="async" src="https://nerdpress.org/wp-content/uploads/2010/11/Json_view_firebug-300x141.png" alt="" title="JSON View Firebug" 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="https://nerdpress.org/wp-content/uploads/2010/11/JSONViewer.png"><img fetchpriority="high" decoding="async" src="https://nerdpress.org/wp-content/uploads/2010/11/JSONViewer-300x183.png" alt="" title="JSONView Firefox AddOn" width="300" height="183" class="alignnone size-medium wp-image-1217" /></a><br />
So ist gut!</p>The post <a href="https://nerdpress.org/2010/11/17/debuggin-json-mit-json-views/">Debuggin JSON mit JSON Views</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Google&#8217;s closure Tools jetzt opensource</title>
		<link>https://nerdpress.org/2009/11/06/googles-closure-tools-jetzt-opensource/</link>
		
		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Fri, 06 Nov 2009 15:09:12 +0000</pubDate>
				<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">https://nerdpress.org/?p=516</guid>

					<description><![CDATA[<p>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 &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2009/11/06/googles-closure-tools-jetzt-opensource/" class="more-link">Continue reading<span class="screen-reader-text"> "Google&#8217;s closure Tools jetzt opensource"</span></a></p>
The post <a href="https://nerdpress.org/2009/11/06/googles-closure-tools-jetzt-opensource/">Google’s closure Tools jetzt opensource</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<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>The post <a href="https://nerdpress.org/2009/11/06/googles-closure-tools-jetzt-opensource/">Google’s closure Tools jetzt opensource</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PHP debug Ausgaben in Ajax Responses mit FirePHP</title>
		<link>https://nerdpress.org/2009/10/03/php-debug-ausgaben-in-ajax-responses-mit-firephp/</link>
		
		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Sat, 03 Oct 2009 10:15:20 +0000</pubDate>
				<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">https://nerdpress.org/?p=330</guid>

					<description><![CDATA[<p>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: FB::log(&#039;Log message&#039;); FB::info(&#039;Info message&#039;); FB::warn(&#039;Warn message&#039;); FB::error(&#039;Error message&#039;); installieren lässt sich das Ding beqeum via pear: pear channel-discover pear.firephp.org pear install firephp/FirePHPCore einbinden dann so: // object oriented API require_once(&#039;FirePHPCore/FirePHP.class.php&#039;); $firephp = FirePHP::getInstance(true); &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2009/10/03/php-debug-ausgaben-in-ajax-responses-mit-firephp/" class="more-link">Continue reading<span class="screen-reader-text"> "PHP debug Ausgaben in Ajax Responses mit FirePHP"</span></a></p>
The post <a href="https://nerdpress.org/2009/10/03/php-debug-ausgaben-in-ajax-responses-mit-firephp/">PHP debug Ausgaben in Ajax Responses mit FirePHP</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<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 decoding="async" class="alignnone size-full wp-image-396" title="SimpleConsole" src="https://nerdpress.org/wp-content/uploads/2009/10/SimpleConsole.png" alt="SimpleConsole" 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(&#039;Log message&#039;);

FB::info(&#039;Info message&#039;);

FB::warn(&#039;Warn message&#039;);

FB::error(&#039;Error message&#039;);

</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(&#039;FirePHPCore/FirePHP.class.php&#039;);
$firephp = FirePHP::getInstance(true);
$firephp-&gt; *

require_once(&#039;FirePHPCore/fb.php&#039;);
FB:: *

</pre>
<p>dann solche Dinge tun:</p>
<pre class="brush: php; title: ; notranslate">

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

$firephp-&gt;log(&#039;Plain Message&#039;);     // or FB::
$firephp-&gt;info(&#039;Info Message&#039;);     // or FB::
$firephp-&gt;warn(&#039;Warn Message&#039;);     // or FB::
$firephp-&gt;error(&#039;Error Message&#039;);   // or FB::

</pre>
<p>auch sehr schön. Logging in Tabellenform:</p>
<pre class="brush: php; title: ; notranslate">
$table   = array();
$table&#x5B;] = array(&#039;Col 1 Heading&#039;,&#039;Col 2 Heading&#039;);
$table&#x5B;] = array(&#039;Row 1 Col 1&#039;,&#039;Row 1 Col 2&#039;);
$table&#x5B;] = array(&#039;Row 2 Col 1&#039;,&#039;Row 2 Col 2&#039;);
$table&#x5B;] = array(&#039;Row 3 Col 1&#039;,&#039;Row 3 Col 2&#039;);

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

fb($table, &#039;Table Label&#039;, 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(&#039;Trace Label&#039;);  // or FB::

fb(&#039;Trace Label&#039;, 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>The post <a href="https://nerdpress.org/2009/10/03/php-debug-ausgaben-in-ajax-responses-mit-firephp/">PHP debug Ausgaben in Ajax Responses mit FirePHP</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>JS Unit Testing mit FireUnit &#8211; JavaScript Unit Testing Extension</title>
		<link>https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/</link>
					<comments>https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/#comments</comments>
		
		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Fri, 02 Oct 2009 12:28:16 +0000</pubDate>
				<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">https://nerdpress.org/?p=317</guid>

					<description><![CDATA[<p>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: if ( typeof fireunit === &#34;object&#34; ) { // Simple true-like/false-like testing fireunit.ok( true, &#34;I&#039;m going &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/" class="more-link">Continue reading<span class="screen-reader-text"> "JS Unit Testing mit FireUnit &#8211; JavaScript Unit Testing Extension"</span></a></p>
The post <a href="https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/">JS Unit Testing mit FireUnit – JavaScript Unit Testing Extension</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<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&#039;m going to pass!&quot; );
fireunit.ok( false, &quot;I&#039;m going to fail!&quot; );

// Compare two strings - shows a diff of the
// results if they&#039;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 decoding="async" class="alignnone size-full wp-image-325" title="FireUnit Screenshot" src="https://nerdpress.org/wp-content/uploads/2009/10/Bild-2.png" alt="FireUnit Screenshot" width="498" height="235" /></p>
<p>nice.</p>The post <a href="https://nerdpress.org/2009/10/02/js-unit-testing-mit-fireunit-javascript-unit-testing-extension/">JS Unit Testing mit FireUnit – JavaScript Unit Testing Extension</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://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>
