• <legend id='1ZA6u'><style id='1ZA6u'><dir id='1ZA6u'><q id='1ZA6u'></q></dir></style></legend>

      • <bdo id='1ZA6u'></bdo><ul id='1ZA6u'></ul>

      <small id='1ZA6u'></small><noframes id='1ZA6u'>

      <tfoot id='1ZA6u'></tfoot>
    1. <i id='1ZA6u'><tr id='1ZA6u'><dt id='1ZA6u'><q id='1ZA6u'><span id='1ZA6u'><b id='1ZA6u'><form id='1ZA6u'><ins id='1ZA6u'></ins><ul id='1ZA6u'></ul><sub id='1ZA6u'></sub></form><legend id='1ZA6u'></legend><bdo id='1ZA6u'><pre id='1ZA6u'><center id='1ZA6u'></center></pre></bdo></b><th id='1ZA6u'></th></span></q></dt></tr></i><div id='1ZA6u'><tfoot id='1ZA6u'></tfoot><dl id='1ZA6u'><fieldset id='1ZA6u'></fieldset></dl></div>
      1. 如何为命令行 PHP 脚本触发 XDebug 分析器?

        时间:2023-10-04
          <tbody id='a9Tu1'></tbody>

        • <bdo id='a9Tu1'></bdo><ul id='a9Tu1'></ul>

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

                • 本文介绍了如何为命令行 PHP 脚本触发 XDebug 分析器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  XDebug 提供配置指令 xdebug.profiler_enable_trigger 允许通过传递 GET 或 POST 参数XDEBUG_PROFILE"来激活分析.通过 HTTP 调用脚本时.如果您不想分析所有脚本,而只想分析少数特殊情况而不总是更改 PHP 配置,这会很方便.

                  XDebug offers the configuration directive xdebug.profiler_enable_trigger that allows to activate profiling by passing the GET or POST parameter "XDEBUG_PROFILE" when calling a script via HTTP. This is handy if you don't want profiling for ALL of your scripts but only for a few special cases without always changing your PHP configuration.

                  有没有办法为命令行 PHP 程序实现相同的行为?我试图将 XDEBUG_PROFILE 作为命令行参数传递,但没有奏效.

                  Is there a way to achieve the same behavior for command line PHP programs? I tried to pass the XDEBUG_PROFILE as a command line argument but it didn't work.

                  总的来说,分析命令行 PHP 效果很好,但我希望具有与浏览器和 HTTP 服务器相同的每次调用灵活性.

                  In general, profiling command line PHP works well, but I'd like to have the same per-call-flexibility as with a browser and HTTP server.

                  推荐答案

                  您可以使用 -d 标志传递 INI 设置:php -d xdebug.profiler_enable=On script.php.

                  You can pass INI settings with the -d flag: php -d xdebug.profiler_enable=On script.php.

                  这篇关于如何为命令行 PHP 脚本触发 XDebug 分析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                • <small id='IpHt2'></small><noframes id='IpHt2'>

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