If you now load a phpinfo() page you will see something like the following below the first table: This program makes use of the Zend Scripting Language Engine: Then click on the Restart PHP button (looks like a recycle button in the upper right hand corner of the page). Select Zend Debugger and click on Disable. Go to and click on Configurations, Components. It will now look like this: zend_extension="/usr/local/zend/lib/debugger/xdebug.so" Find this line: zend_extension=/usr/local/zend/lib/ZendExtensionManager.soĪnd add the following line before it: zend_extension="/usr/local/zend/lib/debugger/xdebug.so" We now need to tell PHP to load XDebug and not load Zend Debugger.Įdit the file /usr/local/zend/etc/conf.d/zend_extension_manager.ini. Now create the file /usr/local/zend/etc/conf.d/xdebug.ini with the following contents: fault_enable=1įeel free to change the XDebug configuration parameters to your liking. Copy the xdebug.so file into the /usr/local/zend/lib/debugger directory on your Mac. You need to go inside the directory corresponding to your Zend Server PHP version, i.e. Remember to download the Mac OS X package.Įxtract the package you downloaded. So start by downloading the "PHP Remote Debugging Client" from ActiveState. Luckily, there is a source for a good quality precompiled package. Compiling from sources is one option, but I take it that most PHP developers are not hardcore UNIX geeks. This article describes how to do it.Įven though Zend Server ships with the XDebug extension, I have found that it doesn't actually work. It's easy and will help you debugging your PHP applications easily on your local environment. Every time I update Zend Server I have to install and enable XDebug instead of Zend Debugger. All other IDEs (Eclipse, NetBeans, phpStorm. Well, on the debugging front it has a major shortcoming: it comes with Zend Debugger which only works with the very expensive Zend Studio IDE. It has pretty much everything you need, including a simple to use back-end for viewing issues occuring on your server which make debugging easier. As I've said many times, I am an avid user of Zend Server for local development on my Mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |