我在使用远程调试(在通过命令行运行脚本时一切正常)时,xdebug在断点处不停止时出现问题。它会在程序的第一行中断,然后退出,而不是捕捉任何断点。远程调试不会在断点处停止
它用于正常工作,直到我切换到使用MacPorts的Apache和PHP。我试过几次重新编译它(有几个版本),但没有骰子。
我使用PHP 5.3.1和Xdebug 2.1.0-β3
我也试了至少3个不同的调试程序(MacGDBp,NetBeans和JetBrains公司的Web IDE)。
我的php.ini的设置是这样的:
[xdebug]
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=localhost
xdebug.idekey=webide
当我登录的调试器输出,设置断点看起来像这样/;
<- breakpoint_set -i 895 -t line -f file:///Users/WM_imac/Sites/wm/debug_test.php -n 13 -s enabled -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="895" state="enabled" id="890660002"></response>
运行时,调试器将获取应用程序的第一行的情况下,然后发送分离和停止消息。
但是,启动调试器时会输出此行。
<- feature_get -i 885 -n breakpoint_types -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="885" feature_name="breakpoint_types" supported="1"><![CDATA[line conditional call return exception]]></response>
是 '有条件行调用返回的异常' 意味着什么?
进一步的研究表明'行条件调用返回异常'是支持的断点列表,而不是任何类型的错误消息。 – 2010-03-02 01:08:52
调用xdebug_break();在我的代码中会正确地导致调试器停止。 – 2010-03-03 17:08:38
你能指定你的php.ini文件的路径吗?你使用HTTPS为这个主机? – DrDol 2010-08-08 22:07:27