1. <i id='ESPwp'><tr id='ESPwp'><dt id='ESPwp'><q id='ESPwp'><span id='ESPwp'><b id='ESPwp'><form id='ESPwp'><ins id='ESPwp'></ins><ul id='ESPwp'></ul><sub id='ESPwp'></sub></form><legend id='ESPwp'></legend><bdo id='ESPwp'><pre id='ESPwp'><center id='ESPwp'></center></pre></bdo></b><th id='ESPwp'></th></span></q></dt></tr></i><div id='ESPwp'><tfoot id='ESPwp'></tfoot><dl id='ESPwp'><fieldset id='ESPwp'></fieldset></dl></div>
          <bdo id='ESPwp'></bdo><ul id='ESPwp'></ul>

        <small id='ESPwp'></small><noframes id='ESPwp'>

      2. <legend id='ESPwp'><style id='ESPwp'><dir id='ESPwp'><q id='ESPwp'></q></dir></style></legend><tfoot id='ESPwp'></tfoot>

      3. 如何让 PHP 在出错时产生回溯?

        时间:2023-09-21
        <legend id='DJgWI'><style id='DJgWI'><dir id='DJgWI'><q id='DJgWI'></q></dir></style></legend>

          <tfoot id='DJgWI'></tfoot>

              <bdo id='DJgWI'></bdo><ul id='DJgWI'></ul>
            • <small id='DJgWI'></small><noframes id='DJgWI'>

            • <i id='DJgWI'><tr id='DJgWI'><dt id='DJgWI'><q id='DJgWI'><span id='DJgWI'><b id='DJgWI'><form id='DJgWI'><ins id='DJgWI'></ins><ul id='DJgWI'></ul><sub id='DJgWI'></sub></form><legend id='DJgWI'></legend><bdo id='DJgWI'><pre id='DJgWI'><center id='DJgWI'></center></pre></bdo></b><th id='DJgWI'></th></span></q></dt></tr></i><div id='DJgWI'><tfoot id='DJgWI'></tfoot><dl id='DJgWI'><fieldset id='DJgWI'></fieldset></dl></div>
                    <tbody id='DJgWI'></tbody>

                  本文介绍了如何让 PHP 在出错时产生回溯?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  尝试使用默认的仅当前行错误消息来调试 PHP 是很可怕的.发生错误时,如何让 PHP 生成回溯(堆栈跟踪)?

                  Trying to debug PHP using its default current-line-only error messages is horrible. How can I get PHP to produce a backtrace (stack trace) when errors are produced?

                  推荐答案

                  Xdebug 打印关于错误的回溯表,并且您不必编写任何 PHP 代码来实现它.

                  Xdebug prints a backtrace table on errors, and you don't have to write any PHP code to implement it.

                  缺点是您必须将其安装为 PHP 扩展.

                  Downside is you have to install it as a PHP extension.

                  这篇关于如何让 PHP 在出错时产生回溯?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在 PHP 5.4 中禁用严格标准 下一篇:使用 register_shutdown_function() 处理 PHP 中的致命错误

                  相关文章

                  最新文章

                  <tfoot id='hcgqI'></tfoot>

                      <small id='hcgqI'></small><noframes id='hcgqI'>

                      • <bdo id='hcgqI'></bdo><ul id='hcgqI'></ul>
                      <i id='hcgqI'><tr id='hcgqI'><dt id='hcgqI'><q id='hcgqI'><span id='hcgqI'><b id='hcgqI'><form id='hcgqI'><ins id='hcgqI'></ins><ul id='hcgqI'></ul><sub id='hcgqI'></sub></form><legend id='hcgqI'></legend><bdo id='hcgqI'><pre id='hcgqI'><center id='hcgqI'></center></pre></bdo></b><th id='hcgqI'></th></span></q></dt></tr></i><div id='hcgqI'><tfoot id='hcgqI'></tfoot><dl id='hcgqI'><fieldset id='hcgqI'></fieldset></dl></div>
                      <legend id='hcgqI'><style id='hcgqI'><dir id='hcgqI'><q id='hcgqI'></q></dir></style></legend>