I installed both Zend Debugger and XDebug in Eclipse PDT but did not succeed in debugging my Zend Framework application.
When I create a new PHP page in ‘Run > Debug Configurations’ and enter myproject/public/index.php under ‘file’ and click ‘DEBUG’ my browser responds with ‘the requested URL ‘myproject/public/index.php’ was not found on this server.
That is correct because on my server the url would be myproject (or myproject/index or myproject/index/index). Entering this url in the screen mentioned above is not accepted however as it is not a php file in my application.
As apparently nobody has a similar problem I am probably completely on the wrong track. Anyone to enlighten me?
In the Debug Configurations dialog, at the bottom, you should see a URL field. Set this to the url – eg.
myproject/index. Leave theFilesetting asmyproject/public/index.php.The domain in the URL field at the bottom will probably be set to the default
localhost. If you need to change this, clickConfigurenext to PHP Server at the top, and changeBase URL.This is all assuming XDebug. It may work the same for Zend Debugger, but I use XDebug.