【问题标题】:PHPunit and netbeans debugging not stopping at breakpointsPHPunit 和 netbeans 调试不会在断点处停止
【发布时间】:2012-09-15 04:01:39
【问题描述】:

我试图在 netbeans 中调试一些 PHPunit 测试,但它并没有在我的断点处停止。

但是,我可以在浏览器中调试该站点,它会在我的断点处停止。

我修改了文件->项目属性->运行配置->高级为“不打开网络浏览器”。

我使用以下脚本来启动 phpunit:

export XDEBUG_CONFIG="idekey=netbeans-xdebug";
phpunit $@

可能是什么问题?

ps。我过去曾让它工作,但它停止工作,我不得不重新安装 xdebug。我正在使用 ubuntu 11.10

谢谢。

【问题讨论】:

    标签: netbeans phpunit xdebug


    【解决方案1】:

    这通常发生在您的端口未设置为侦听 xdebug 的默认侦听器端口 9000 时。

    这里有一些关于 mac 的 netbeans 说明,但即使你正在运行 Windows,它也应该可以解决问题。

    http://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html

    【讨论】:

      猜你喜欢
      • 2017-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-12
      相关资源
      最近更新 更多