dtf579777 2016-08-04 02:36
浏览 102
已采纳

Netbeans断点不与xdebug一起使用

Right i'm pulling my hair out on this one.

I'm using Netbeans, EasyPHP, and Installed xdebug using by copy/pasting my phpinfo() results into the xdebug wizard which then tells you which .dll file you need to download.

Well i've followed all the instructions, my phpinfo() now says xdebug is installed, I've added the appropiate lines in my php.ini file. However, my breakpoints in Netbeans do not work! I know that xdebug is installed because if I manually add xdebug_break() to my code then they act as a breakpoint.

How can I get netbeans and breakpoints to work without manually using the xdebug php function everytime ?!

PS. I know this question has been asked a million times but I've followed the other solutions and none have fixed my problem!

I'm using XP if that shines any light on the matter?

  • 写回答

1条回答 默认 最新

  • dornc9470 2016-08-04 05:52
    关注

    After many painful hours, I have found out that I had both:

    extension = php_xdebug.dll
    

    uncommented in my php.ini file and:

    zend_extension = C:\path-to-xdebug-file\php_xdebug.dll

    added in my php.ini file. You're supposed to have one or the other!

    Anyway I changed

    extension = php_xdebug.dll

    to

    ;extension = php_xdebug.dll

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示