dourong9253 2011-05-11 14:50
浏览 55
已采纳

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

Many thanks!

  • 写回答

3条回答 默认 最新

  • douchan6512 2011-06-18 13:07
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办