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

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

      <bdo id='l3x1f'></bdo><ul id='l3x1f'></ul>

  • <tfoot id='l3x1f'></tfoot>
        <legend id='l3x1f'><style id='l3x1f'><dir id='l3x1f'><q id='l3x1f'></q></dir></style></legend>
      1. Xdebug 成功连接到 DBGP 客户端,但不会在断点处停

        时间:2023-09-22

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

          <tbody id='vpIQL'></tbody>

          <bdo id='vpIQL'></bdo><ul id='vpIQL'></ul>
          <tfoot id='vpIQL'></tfoot>

          1. <legend id='vpIQL'><style id='vpIQL'><dir id='vpIQL'><q id='vpIQL'></q></dir></style></legend>
                1. <i id='vpIQL'><tr id='vpIQL'><dt id='vpIQL'><q id='vpIQL'><span id='vpIQL'><b id='vpIQL'><form id='vpIQL'><ins id='vpIQL'></ins><ul id='vpIQL'></ul><sub id='vpIQL'></sub></form><legend id='vpIQL'></legend><bdo id='vpIQL'><pre id='vpIQL'><center id='vpIQL'></center></pre></bdo></b><th id='vpIQL'></th></span></q></dt></tr></i><div id='vpIQL'><tfoot id='vpIQL'></tfoot><dl id='vpIQL'><fieldset id='vpIQL'></fieldset></dl></div>
                2. 本文介绍了Xdebug 成功连接到 DBGP 客户端,但不会在断点处停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我安装了 Xdebug 2.1,并运行 PHP 5.2.13.它可以成功连接到多个 DBGP 客户端(即 xdebug.remote_log 显示来回通信,客户端本身也显示传入连接),但它不会在断点处停止.我试过 NetBeans、MacGDBp 以及命令行debugclient 与 Xdebug 捆绑在一起.

                  I have Xdebug 2.1 installed, and running with PHP 5.2.13. It can successfully connect to multiple DBGP clients (i.e. the xdebug.remote_log shows communication back and forth, and the clients themselves also show the incoming connection), but it doesn't stop at breakpoints. I have tried NetBeans, MacGDBp and also the command-line debugclient bundled with Xdebug.

                  一个典型的交换看起来像:

                  A typical exchange looks like:

                  Log opened at 2010-07-20 09:33:17
                  -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///mnt/hgfs/htdocs/mycompany/index.php" language="PHP" protocol_version="1.0" appid="14371" idekey="macgdbp"><engine version="2.1.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2010 by Derick Rethans]]></copyright></init>
                  
                  <- status -i macgdbp
                  -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="status" transaction_id="macgdbp" status="starting" reason="ok"></response>
                  
                  <- step_into -i macgdbp
                  -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="macgdbp" status="stopping" reason="ok"></response>
                  
                  <- status -i macgdbp
                  -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="status" transaction_id="macgdbp" status="stopping" reason="ok"></response>
                  
                  Log closed at 2010-07-20 09:33:18
                  

                  NetBeans 尝试设置断点,Xdebug 确认这些断点:

                  NetBeans attempts to set breakpoints, and these are acknowledged by Xdebug:

                  <- breakpoint_set -i 7 -t line -s enabled -f file:///mnt/hgfs/htdocs/mycompany/index.php -n 9
                  -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="7" state="enabled" id="139360004"></response>
                  

                  然而,Xdebug 还是不肯罢休!

                  However, Xdebug still refuses to stop!

                  推荐答案

                  如果您将 Xdebug 作为 extension 加载(即 extension=xdebug.so) 在 PHP 配置中而不是 zend_extension(即 zend_extension=/usr/lib/php5/20060613+lfs/xdebug.so).

                  This appears to happen if you have have Xdebug loaded as an extension (i.e. extension=xdebug.so) in the PHP config instead of a zend_extension (i.e. zend_extension=/usr/lib/php5/20060613+lfs/xdebug.so).

                  确保您的 PHP 配置中没有 extension=xdebug.so任何地方,即使您是非常确定您正在使用 zend_extension.例如,如果您在 /etc/php5/conf.d/xdebug.ini 中有 zend_extension,这很可能会被 extension 取代在 /etc/php5/apache2/php.ini 中.如果是这种情况,什么都不会抱怨,phpinfo() 会尽职尽责地报告 Xdebug 已加载!(Xdebug 2.1 在作为扩展加载时确实会在 phpinfo() 中发出一个小警告,但以前的版本什么也不做.)

                  Make sure that you don't have an extension=xdebug.so line anywhere in your PHP config, even if you're pretty sure you're using zend_extension. For example, if you have zend_extension in /etc/php5/conf.d/xdebug.ini, this may well be superseded by an extension in /etc/php5/apache2/php.ini. If this is the case, nothing will complain, and phpinfo() will dutifully report that Xdebug is loaded! (Xdebug 2.1 does issue a small warning in phpinfo() when loaded as an extension, but previous versions do nothing.)

                  这篇关于Xdebug 成功连接到 DBGP 客户端,但不会在断点处停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何更改默认的 Netbeans 7 项目目录? 下一篇:根据外部请求在 Netbeans 中启动 XDebug

                  相关文章

                  最新文章

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

                      <legend id='f44uB'><style id='f44uB'><dir id='f44uB'><q id='f44uB'></q></dir></style></legend>

                        <bdo id='f44uB'></bdo><ul id='f44uB'></ul>
                    1. <small id='f44uB'></small><noframes id='f44uB'>