douhao123457
2016-10-03 01:22
浏览 69

Netbeans x PHP:XDebug不在OSX Sierra上工作

I just updated my Mac to Sierra and now XDebug does not work anymore in my Netbeans 8.0.2. When i click on 'Debut Project' button, the browser is loaded with my project, but my breakpoints does not work and the following message is shown on Netbeans bottom status bar :

Waiting For Connection (netbeans-xdebug)

Any hints how to fix this ? Everything was working fine before the update.

Thanks !

图片转代码服务由CSDN问答提供 功能建议

我刚刚将我的Mac更新为Sierra,现在XDebug在我的Netbeans 8.0.2中不再起作用了。 当我点击“Debut Project”按钮时,浏览器加载了我的项目,但我的断点不起作用,Netbeans底部状态栏显示以下消息:

等待连接 (netbeans-xdebug)

任何提示如何解决这个问题? 在更新之前一切正常。

谢谢!

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • doubi4491 2016-10-05 01:24
    已采纳

    Yes, the same thing happened to me, and I wound up reinstalling xdebug, which required updating Xcode to 8.0.

    Sierra installs an updated version of PHP, so you'll probably have to reconfigure PHP.

    In my case, I had a separate version of PHP installed, so after updating xdebug, I pointed Apache at that version. Since it was already configured to use xdebug, I didn't have to do anything else.

    已采纳该答案
    打赏 评论
  • dongxiaolin2801 2016-10-30 08:59

    you need to turn on xdebug.remote_enable in php.ini, some installer overwrite the php.ini settings. Hope this help.

    打赏 评论

相关推荐 更多相似问题