I've just upgraded to a new Mac running Mountain Lion (OS 10.8) and I'm having problems getting my fresh install of Zend Studio 9 to debug properly using CLI.
Note that I am trying to run and debug using studio's built-in debugger and am not connecting to a remote server. When I try to run a script as a CLI Application, I get the following error:
Error launching '[NAME OF FILE]'
The session could not be started.
In order to generate debug information, please make sure the debugger is
properly configured as a php.ini directive.
On my old machine, running Snow Leopard with the same version of Zend Studio, turning on CLI support and running the file worked fine. Again, I am not using an outside version of PHP so should not have to configure php.ini.
I have tried all manner of restarting and reinstalling and still get this error. Can anyone point me in the right direction?
Finally figured this out. It was an incompatibility with OSX Mountain Lion. When I was able to get the Zend Studio console to show the actual internal error message, I found that the same problem existed for Zend Server (which I think Zend fixed there).
The same problem in Zend Server is described here: http://www.andrew-kirkpatrick.com/2012/07/apache-not-starting-in-zend-server-with-mac-os-x-10-8-mountain-lion-upgrade/ The command you have to run for Zend Studio instead of Zend Server is a little different because the internal version of PHP is buried deep within the Zend Studio file structure. Instead of the one in the link, it's this:
sudo cp /usr/lib/libxslt.1.dylib /Applications/Zend\ Studio.app/Contents/Resources/Java/plugins/com.zend.php.debug.debugger.macosx_5.3.18.v20120625/resources/lib/.
Hope this helps someone.