开发者

Configuring subdomains in Eclipse PDT & xDebug

I'm trying to set up a local environment for developing and testing an existing PHP application.

I've chosen Eclipse PDT as my IDE and xDebug as the debugging module. When testing individual files on the server's document root, things work perfectly. However, certain folders in my project need to resolve as subdomains when running the debugger:

/index.php -> hostname/index.php

/control/index.php -> control.hostname/index.php

/support/a/b.php -> support.hostname/a/b.php

Is there any way to accomplish this kind of set up? I've tried using path mappings under the P开发者_StackOverflow中文版HP Server settings, but it doesn't seem to affect the URL Eclipse generates when I start debugging.

Many thanks!


You need to setup one webserver per subdomain and then do the path mapping according to it.

Start the debug session with the fitting webserver setting then.


What webserver and what OS do you use?

In case of Apache - use named virtual hosts.

One of many tutorials how to set it up on WAMP host: http://apptools.com/phptools/virtualhost.php


After create your virtual host make sure you can access it at browser URL.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜