Configuring subdomains in Eclipse PDT & xDebug

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

I chose Eclipse PDT as my IDE and xDebug as a debugging module. When testing individual files in the server root directory everything works fine. However, some folders in my project should allow as subdomains when starting 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 do this? I tried using path mappings in the settings of PHP Server, but this does not seem to affect the Eclipse URL that is generated when debugging starts.

Many thanks!

+8
eclipse php xdebug subdomain eclipse-pdt
source share
3 answers

You need to configure one web server per subdomain, and then map the path accordingly.

Start a debugging session with the web server settings set.

+2
source share

Which web server and which OS are you using?

In the case of Apache, use named virtual hosts.

One of many WAMP host configuration guides: http://apptools.com/phptools/virtualhost.php

0
source share

After creating the virtual host, make sure that you can access it at the browser URL.

-one
source share

All Articles