PHP debugging on OS X - hopeless?

后端 未结 9 505
别跟我提以往
别跟我提以往 2021-01-30 09:35

I have tried:

  1. Xdebug and Eclipse. Eclipse launches a web browser, but the browser tries to access a non-existent file in Eclipse\'s .app bundle.
  2. Xdebug an
9条回答
  •  清歌不尽
    2021-01-30 10:00

    Here's how I did it:

    1 - Copy the latest version of xdebug.so from http://aspn.activestate.com/ASPN/Downloads/Komodo/RemoteDebugging to /usr/libexec.

    2 - Add the following to the global php.ini:

    zend_extension="/usr/libexec/xdebug.so"
    xdebug.remote_enable=1
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
    xdebug.remote_autostart=1
    

    3 - Restart Apache and run MacGDBp.

提交回复
热议问题