【问题标题】:PHP Xdebug with NetBeans and Apache使用 NetBeans 和 Apache 进行 PHP Xdebug
【发布时间】:2021-06-04 16:21:55
【问题描述】:

我正在尝试使用 PHP 迈出第一步。我决定使用 NetBeans,这很有帮助。

NetBeans 正在我的本地 Windows 机器上运行。我的测试页在我的 Ubuntu HyperV M 中的 Apache2 网络服务器上运行。

到目前为止,一切正常。现在我通过 Xdebug 启用了远程调试。因此,我在 php.ini 中添加了以下几行:

[debug]
; Remote settings
xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=192.168.2.20
xdebug.remote_port=9000

连接正常,调试正常。不幸的是,调试器停在每一行,而不仅仅是在我的断点处。这使我的测试效率低下。因此我的问题是如何告诉 NetBeans 仅在断点处停止?

【问题讨论】:

标签: php netbeans apache2 xdebug


【解决方案1】:

自己找到了解决方案。 Netbeans PHP 调试设置中有一个选项“在第一行停止”。删除它就可以了。

【讨论】:

    猜你喜欢
    • 2012-04-06
    • 2014-06-11
    • 1970-01-01
    • 2012-06-03
    • 2013-07-13
    • 2010-10-16
    • 2020-11-21
    • 1970-01-01
    • 2011-02-26
    相关资源
    最近更新 更多