Debugging Virtual Hosts with Zend Studio for Eclipse
I am having a trouble with debugging Deki Wiki. It does not stop at the breakpoints. When I delete the VirtualHost tag in my httpd.conf, the debugger perfectly works with other projects. I've tried 2 things:
1- I've used everything as usual. The document root in my virtual host tag is "\ApacheWebServer\deki-hayes\web". Breakpoints are ignored.
2- I've set the document root as "\ApacheWebServer" and reached the url path "localhost\deki-hayes\web\index.php". The debugger stops at breakpoints. But this time the site does not work properly. Apparently it cannot reach the skins, since it gets the relative path of DocumentRoot.
(Error.log : File does not exist: /ApacheWebServer/skins)
Also the links from the main page does not work in this case.
I've also put Dummy.php to both \ApacheWebServer and \ApacheWebServer\deki-hayes\web.
I am using Zend Studio for Eclipse 6.0 as IDE, Zend Debugger and WAMP conf.
Any kind of help will save my life. I have to solve this problem, there is no other choice.
I've solved the problem. I've set /ApacheWebServer/deki-hayes as the workspace of "Zend Studio for Eclipse" and put "config", "src" folders of deki-hayes in the workspace. In Eclipse, I've created a new project called "web", which in fact, is the "web" folder of deki-hayes. I ve imported all the files in "web" folder to this project and started debugging.
An article says , the project root in Eclipse and the document root of virtual host must be the same for debugging. And the article is suggesting to change the document root to project root. Since there is no way to change the document root for hayes, I changed the project root.
It works without any trouble, but it is not a very nice trick. If anyone knows alt-way to debug with this IDE, please inform me.