Configuring subdomains in Eclipse PDT & xDebug
Asked Answered
C

2

8

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 PHP Server settings, but it doesn't seem to affect the URL Eclipse generates when I start debugging.

Many thanks!

Crush answered 11/5, 2011 at 14:50 Comment(0)
B
2

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.

Benoite answered 18/6, 2011 at 13:7 Comment(1)
Debug Configurations -> New for all 3 domains and subdomains ;-)Keats
B
-1

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

Batrachian answered 18/7, 2011 at 18:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.