开发者

url not found when debugging Zend Framework app in Eclipse PDT

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 the File setting as myproject/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, click Configure next to PHP Server at the top, and change Base URL.

This is all assuming XDebug. It may work the same for Zend Debugger, but I use XDebug.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜