<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.errorfunc.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.debug-print-backtrace.php',
    1 => 'debug_print_backtrace',
    2 => 'Prints a backtrace',
  ),
  'up' => 
  array (
    0 => 'ref.errorfunc.php',
    1 => 'Функції Обробки Помилок',
  ),
  'prev' => 
  array (
    0 => 'function.debug-backtrace.php',
    1 => 'debug_backtrace',
  ),
  'next' => 
  array (
    0 => 'function.error-clear-last.php',
    1 => 'error_clear_last',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/errorfunc/functions/debug-print-backtrace.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.debug-print-backtrace" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">debug_print_backtrace</h1>
    <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">debug_print_backtrace</span> &mdash; <span class="dc-title">
     Prints a backtrace
    </span></p>

   </div>
  
   <div class="refsect1 description" id="refsect1-function.debug-print-backtrace-description">
    <h3 class="title">Опис</h3>
    <div class="methodsynopsis dc-description">
     <span class="methodname"><strong>debug_print_backtrace</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$options</code><span class="initializer"> = 0</span></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$limit</code><span class="initializer"> = 0</span></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

    <p class="para rdfs-comment">
     <span class="function"><strong>debug_print_backtrace()</strong></span> prints a PHP backtrace. It
     prints the function calls, <span class="function"><a href="function.include.php" class="function">include</a></span>d/<span class="function"><a href="function.require.php" class="function">require</a></span>d files and
     <span class="function"><a href="function.eval.php" class="function">eval()</a></span>ed stuff.
    </p>
   </div>


 <div class="refsect1 parameters" id="refsect1-function.debug-print-backtrace-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">options</code></dt>
     <dd>
      <p class="para">
       This parameter is a bitmask for the following options:
       <table class="doctable table">
        <caption><strong><span class="function"><strong>debug_print_backtrace()</strong></span> options</strong></caption>
        
         <tbody class="tbody">
          <tr>
           <td>DEBUG_BACKTRACE_IGNORE_ARGS</td>
           <td>
            Whether or not to omit the &quot;args&quot; index, and thus all the function/method arguments,
            to save memory.
           </td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
    
     <dt><code class="parameter">limit</code></dt>
     <dd>
      <p class="para">
       This parameter can be used to limit the number of stack frames printed.
       By default (<code class="parameter">limit</code>=<code class="literal">0</code>) it prints all stack frames.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


   <div class="refsect1 returnvalues" id="refsect1-function.debug-print-backtrace-returnvalues">
    <h3 class="title">Значення, що повертаються</h3>
    <p class="para">
     Не повертає значень.
    </p>
   </div>


   <div class="refsect1 examples" id="refsect1-function.debug-print-backtrace-examples">
    <h3 class="title">Приклади</h3>
    <p class="para">
     <div class="example" id="example-1">
      <p><strong>Приклад #1 <span class="function"><strong>debug_print_backtrace()</strong></span> example</strong></p>
      <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// include.php file<br /><br /></span><span style="color: #007700">function </span><span style="color: #0000BB">a</span><span style="color: #007700">() {<br />    </span><span style="color: #0000BB">b</span><span style="color: #007700">();<br />}<br /><br />function </span><span style="color: #0000BB">b</span><span style="color: #007700">() {<br />    </span><span style="color: #0000BB">c</span><span style="color: #007700">();<br />}<br /><br />function </span><span style="color: #0000BB">c</span><span style="color: #007700">(){<br />    </span><span style="color: #0000BB">debug_print_backtrace</span><span style="color: #007700">();<br />}<br /><br /></span><span style="color: #0000BB">a</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
      </div>

      <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// test.php file<br />// this is the file you should run<br /><br /></span><span style="color: #007700">include </span><span style="color: #DD0000">'include.php'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
     </div>

     <div class="example-contents"><p>Поданий вище приклад виведе щось
схоже на:</p></div>
     <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">#0  c() called at [/tmp/include.php:10]
#1  b() called at [/tmp/include.php:6]
#2  a() called at [/tmp/include.php:17]
#3  include(/tmp/include.php) called at [/tmp/test.php:3]</pre>
</div>
     </div>
    </div>
   </p>
  </div>


  <div class="refsect1 seealso" id="refsect1-function.debug-print-backtrace-seealso">
   <h3 class="title">Прогляньте також</h3>
   <p class="para">
    <ul class="simplelist">
     <li><span class="function"><a href="function.debug-backtrace.php" class="function" rel="rdfs-seeAlso">debug_backtrace()</a> - Generates a backtrace</span></li>
    </ul>
   </p>
  </div>

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