First of all, we use the brew tap which allows you to add more Github repos to the list of formulas
*$ brew tap homebrew/dupes*
*$ brew tap homebrew/dupes*
Next, it's time to install the php54-xdebug! This should take for a while to install its dependencies.
$ brew install php54-xdebug(Optional) If there is an error about the permission - cannot write /usr/local/include, you can give it a permission by using:
$ sudo chown -R $USER /usr/local/includeFinally, add the following lines into `php.ini`
*[XDebug]
; Only Zend OR (!) XDebug
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
; XAMPP and XAMPP Lite 1.7.0 and later come with a bundled xdebug at /php/ext/php_xdebug.dll,without a version number.
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
; Port number must match debugger port number in NetBeans IDE Tools > Options > PHP
xdebug.remote_handler=dbgp
xdebug.var_display_max_depth = 10
xdebug.var_display_max_data = 2048* Note: php54-xdebug is used to install PHP5.4. So, you can simply change the version as you need.
No comments:
Post a Comment