|
Re: PDT / Xdebug / Multiple sub domains [message #84312 is a reply to message #84282] |
Sat, 22 November 2008 09:50 |
Eclipse User |
|
|
|
Originally posted by: dkel50.hotnospmail.com
Hi Shawn, I am not sure I fully understand the problem. The xdebug
implementation doesn't make use of urls for path mapping. The only time
the url is used is when you launch the debugger for the first time. This
then invokes that url and turns on the xdebug cookie so that the browser
is then in debug mode. All interaction between xdebug running in the web
server and PDT is done by absolute file name and this is what the path
mapper uses. So you map the absolute path in the web server to your
workspace path in PDT.
When you set a breakpoint in PDT, it can translate that to the correct
absolute path in your server and define the correct breakpoint in the
server. So if it is all the same code then that breakpoint will fire and
PDT will break.
PDT autogenerates a path mapping based on the file you specify in the
web script launch and the file that gets executed when the url is
invoked. You can of course create your own path mappings when you define
the server.
I hope this explanation helps.
Dave Kelsey
Shawn Clark wrote:
> Hi,
>
> I am wondering if it is possible to setup a PDT debug session to respond
> to multiple sub domains?
>
> I am working with an application that has ServerAlias' within a virtual
> host such that any number of sub domains call the same code so if I
> setup a breakpoint on a line of code it should break on any of the sub
> domains.
>
> Currently it doesn't look like it is possible due to the fact the the
> PHP Server configuration has a URL like http://domain.com/. What I would
> be looking for is something like http://*.domain.com/. Then in the path
> mapping it would just be one entry.
>
> --
> Shawn Clark
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06515 seconds