<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mysqli.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'mysqli.debug.php',
    1 => 'mysqli::debug',
    2 => 'Effectue des actions de d&eacute;bogage',
  ),
  'up' => 
  array (
    0 => 'class.mysqli.php',
    1 => 'mysqli',
  ),
  'prev' => 
  array (
    0 => 'mysqli.construct.php',
    1 => 'mysqli::__construct',
  ),
  'next' => 
  array (
    0 => 'mysqli.dump-debug-info.php',
    1 => 'mysqli::dump_debug_info',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/mysqli/mysqli/debug.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysqli.debug" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli::debug</h1>
  <h1 class="refname">mysqli_debug</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mysqli::debug</span> -- <span class="refname">mysqli_debug</span> &mdash; <span class="dc-title">Effectue des actions de débogage</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysqli.debug-description">
  <h3 class="title">Description</h3>
  <p class="para">Style orienté objet</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>mysqli::debug</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$options</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">Style procédural</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>mysqli_debug</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$options</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   Effectue des actions de débogage en utilisant la bibliothèque de débogage Fred Fish.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli.debug-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">options</code></dt>
     <dd>
      <p class="para">
       Une chaîne de caractères représentant l&#039;opération de
       débogage à effectuer.
      </p>
      <p class="para">
       La chaîne de contrôle de débogage est une séquence de champs séparés par deux points, comme suit :
       <code class="literal"><div class="cdata"><pre>&lt;field_1&gt;:&lt;field_2&gt;:&lt;field_N&gt;</pre></div></code>
       Chaque champ se compose d&#039;un caractère d&#039;indicateur obligatoire suivi d&#039;un <code class="literal">,</code>
       facultatif et d&#039;une liste de modificateurs séparés par des virgules :
       <code class="literal">flag[,modifier,modifier,...,modifier]</code>
      </p>
      <p class="para">
       <table class="doctable table">
        <caption><strong>Caractères de drapeau reconnus</strong></caption>
        
         <thead>
          <tr>
           <th><code class="parameter">options</code> caractère</th>
           <th>Description</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td>O</td>
           <td><strong><code>MYSQLND_DEBUG_FLUSH</code></strong></td>
          </tr>

          <tr>
           <td>A/a</td>
           <td><strong><code>MYSQLND_DEBUG_APPEND</code></strong></td>
          </tr>

          <tr>
           <td>F</td>
           <td><strong><code>MYSQLND_DEBUG_DUMP_FILE</code></strong></td>
          </tr>

          <tr>
           <td>i</td>
           <td><strong><code>MYSQLND_DEBUG_DUMP_PID</code></strong></td>
          </tr>

          <tr>
           <td>L</td>
           <td><strong><code>MYSQLND_DEBUG_DUMP_LINE</code></strong></td>
          </tr>

          <tr>
           <td>m</td>
           <td><strong><code>MYSQLND_DEBUG_TRACE_MEMORY_CALLS</code></strong></td>
          </tr>

          <tr>
           <td>n</td>
           <td><strong><code>MYSQLND_DEBUG_DUMP_LEVEL</code></strong></td>
          </tr>

          <tr>
           <td>o</td>
           <td>output to file</td>
          </tr>

          <tr>
           <td>T</td>
           <td><strong><code>MYSQLND_DEBUG_DUMP_TIME</code></strong></td>
          </tr>

          <tr>
           <td>t</td>
           <td><strong><code>MYSQLND_DEBUG_DUMP_TRACE</code></strong></td>
          </tr>

          <tr>
           <td>x</td>
           <td><strong><code>MYSQLND_DEBUG_PROFILE_CALLS</code></strong></td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysqli.debug-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne toujours <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-mysqli.debug-changelog">
  <h3 class="title">Historique</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        Cette fonction retourne désormais toujours <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>. Auparavant, elle retournait <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> en cas d&#039;échec.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-mysqli.debug-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Génération d&#039;un fichier de &quot;traces&quot;</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">/* Génère un fichier de "trace" dans '/tmp/client.trace' sur la machine (cliente) locale : */<br /></span><span style="color: #0000BB">mysqli_debug</span><span style="color: #007700">(</span><span style="color: #DD0000">"d:t:o,/tmp/client.trace"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-mysqli.debug-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Pour utiliser la fonction <span class="function"><strong>mysqli_debug()</strong></span>, l&#039;on doit
    compiler la bibliothèque cliente MySQL avec le support du débogage.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-mysqli.debug-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="mysqli.dump-debug-info.php" class="function" rel="rdfs-seeAlso">mysqli_dump_debug_info()</a> - &Eacute;crit les informations de d&eacute;bogage dans les logs</span></li>
    <li><span class="function"><a href="function.mysqli-report.php" class="function" rel="rdfs-seeAlso">mysqli_report()</a> - Alias de mysqli_driver-&gt;report_mode</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>