Netbeans + Xdebug + php not working

前端 未结 8 2170
故里飘歌
故里飘歌 2020-12-18 01:41

My netbeans does not work the breakpoints using xdebug, my configuration looks correct, so I configured the first time I ran up to stop debugging the first time since then h

8条回答
  •  -上瘾入骨i
    2020-12-18 02:28

    (I am replying with an Answer since the formatting in comments wasn't working properly)

    Same happened for me: worked once and then stopped. However, I reached a point in my config where it started working without problems and I can share.

    First I moved on top of php.ini the ioncube loader:

    [PHP]
    zend_extension=/Applications/MAMP/bin/php5/zend/lib/ioncube_loader_dar_5.2.so
    

    Then I put these lines in the xdebug config:

    [xdebug]
    zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
    xdebug.default_enable=1
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
    

    And commented out all the lines about Zend Optimizer

    [Zend]
    ;zend_optimizer.optimization_level=15
    ;zend_extension_manager.optimizer=/Applications/MAMP/bin/php5/zend/lib/Optimizer-3.3.3
    ;zend_optimizer.version=3.3.3
    

    I work on MAMP, this is why the paths to my libraries are referred to my MAMP folder.

    Good luck

提交回复
热议问题