Why does xdebug not establish connection with NetBeans?

前端 未结 7 1596
醉梦人生
醉梦人生 2021-01-12 06:15

I try using xdebug with NetBeans to debug PHP. I start debug, and NetBeans waits for ever for a connection with xdebug. I have NetBeans 6.8 (latest version) with the latest

7条回答
  •  没有蜡笔的小新
    2021-01-12 06:38

    The following settings worked for me with NetBeans 7.2 on Mountain Lion after restarting Apache:

    zend_extension = /usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
    xdebug.remote_autostart=on 
    xdebug.remote_enable=on
    xdebug.remote_handler=dbgp
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.remote_mode=req
    xdebug.idekey="netbeans-xdebug" 
    

提交回复
热议问题