<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.throwable.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'throwable.gettrace.php',
    1 => 'Throwable::getTrace',
    2 => '获取堆栈踪迹（Stack Trace）',
  ),
  'up' => 
  array (
    0 => 'class.throwable.php',
    1 => 'Throwable',
  ),
  'prev' => 
  array (
    0 => 'throwable.getline.php',
    1 => 'Throwable::getLine',
  ),
  'next' => 
  array (
    0 => 'throwable.gettraceasstring.php',
    1 => 'Throwable::getTraceAsString',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'language/predefined/throwable/gettrace.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="throwable.gettrace" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Throwable::getTrace</h1>
  <p class="verinfo">(PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">Throwable::getTrace</span> &mdash; <span class="dc-title">获取堆栈踪迹（Stack Trace）</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-throwable.gettrace-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Throwable::getTrace</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   返回 <span class="type"><a href="language.types.array.php" class="type array">array</a></span> 的堆栈踪迹（Stack Trace）。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-throwable.gettrace-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-throwable.gettrace-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回 <span class="type"><a href="language.types.array.php" class="type array">array</a></span> 的堆栈踪迹（Stack Trace），和 <span class="function"><a href="function.debug-backtrace.php" class="function">debug_backtrace()</a></span> 具有相同的格式。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-throwable.gettrace-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="exception.gettrace.php" class="methodname" rel="rdfs-seeAlso">Exception::getTrace()</a> - 获取异常追踪信息</span></li>
   </ul>
  </p>
 </div>

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