<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'mysqli.debug.php',
    1 => 'mysqli::debug',
    2 => 'Performs debugging operations',
  ),
  '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' => 'en',
    '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">Performs debugging operations</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysqli.debug-description">
  <h3 class="title">Опис</h3>
  <p class="para">Об&#039;єктно-орієнтований стиль</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">Процедурний стиль</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">
   Performs debugging operations using the Fred Fish debugging library.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli.debug-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">options</code></dt>
     <dd>
      <p class="para">
       A string representing the debugging operation to perform
      </p>
      <p class="para">
        The debug control string is a sequence of colon separated fields as follows:
        <code class="literal"><div class="cdata"><pre>&lt;field_1&gt;:&lt;field_2&gt;:&lt;field_N&gt;</pre></div></code>
        Each field consists of a mandatory flag character followed by an optional <code class="literal">,</code> and comma separated list of modifiers:
        <code class="literal">flag[,modifier,modifier,...,modifier]</code>
      </p>
      <p class="para">
       <table class="doctable table">
        <caption><strong>Recognized Flag Characters</strong></caption>
          
            <thead>
              <tr>
                <th><code class="parameter">options</code> character</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">Значення, що повертаються</h3>
  <p class="para">
   Завжди повертає <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">Журнал змін</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Версія</th>
       <th>Опис</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        This function now always returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>. Previously it returned <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-mysqli.debug-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 Generating a Trace File</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">/* Create a trace file in '/tmp/client.trace' on the local (client) machine: */<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">Примітки</h3>
  <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
   <p class="para">
    To use the <span class="function"><strong>mysqli_debug()</strong></span> function you must compile
    the MySQL client library to support debugging.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-mysqli.debug-seealso">
  <h3 class="title">Прогляньте також</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> - Dump debugging information into the log</span></li>
    <li><span class="function"><a href="function.mysqli-report.php" class="function" rel="rdfs-seeAlso">mysqli_report()</a> - Псевдонім of mysqli_driver-&gt;report_mode</span></li>
   </ul>
  </p>
 </div>


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