<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Aide on Outweb</title><link>https://outweb.eu/tags/aide/</link><description>Recent content in Aide on Outweb</description><image><title>Outweb</title><url>https://outweb.eu/images/seo/outweb-default-og.svg</url><link>https://outweb.eu/images/seo/outweb-default-og.svg</link></image><generator>Hugo</generator><language>fr-FR</language><lastBuildDate>Sat, 30 Jul 2011 18:04:59 +0000</lastBuildDate><atom:link href="https://outweb.eu/tags/aide/feed.xml" rel="self" type="application/rss+xml"/><item><title>Une aide au débogage javascript : blackbird</title><link>https://outweb.eu/2011/07/30/une-aide-au-debogage-javascript-blackbird/</link><pubDate>Sat, 30 Jul 2011 18:04:59 +0000</pubDate><guid isPermaLink="false">https://outweb.eu/2011/07/30/une-aide-au-debogage-javascript-blackbird/</guid><description>&lt;p>&lt;a href="https://github.com/pockata/blackbird-js">BlackBird&lt;/a> est une librairie Javascript qui permet de générer un système de log visuel.&lt;br>
Grâce à cet outil, plus besoin de faire des alertes toutes les 5 lignes de code pour trouver la source de vos bogues.&lt;br>
La librairie permet de chronométrer vos applications afin d&amp;rsquo;en trouver les parties lentes.&lt;/p>
&lt;p>Voici les principales fonctions de la librairie :&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-gdscript3" data-lang="gdscript3">&lt;span style="display:flex;">&lt;span>log&lt;span style="color:#f92672">.&lt;/span>debug( &lt;span style="color:#e6db74">&amp;#39;this is a debug message&amp;#39;&lt;/span> );
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>log&lt;span style="color:#f92672">.&lt;/span>info( &lt;span style="color:#e6db74">&amp;#39;this is an info message&amp;#39;&lt;/span> );
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>log&lt;span style="color:#f92672">.&lt;/span>warn( &lt;span style="color:#e6db74">&amp;#39;this is a warning message&amp;#39;&lt;/span> );
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>log&lt;span style="color:#f92672">.&lt;/span>error( &lt;span style="color:#e6db74">&amp;#39;this is an error message&amp;#39;&lt;/span> );
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">//&lt;/span> pour le profilage
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>log&lt;span style="color:#f92672">.&lt;/span>profile( &lt;span style="color:#e6db74">&amp;#39;generate test string&amp;#39;&lt;/span> );
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">var&lt;/span> testContent &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#e6db74">&amp;#39;&amp;#39;&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">for&lt;/span> ( &lt;span style="color:#66d9ef">var&lt;/span> i &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#ae81ff">0&lt;/span>; i &lt;span style="color:#f92672">&amp;lt;&lt;/span> &lt;span style="color:#ae81ff">3000&lt;/span>; i&lt;span style="color:#f92672">++&lt;/span> ) {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> testContent &lt;span style="color:#f92672">+=&lt;/span> &lt;span style="color:#e6db74">&amp;#39;-&amp;#39;&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>log&lt;span style="color:#f92672">.&lt;/span>profile( &lt;span style="color:#e6db74">&amp;#39;generate test string&amp;#39;&lt;/span> );
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Et voici le résultat obtenu dans la petite fenêtre de débogage :&lt;/p></description></item></channel></rss>