Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » XDebug with path mapper problem
XDebug with path mapper problem [message #6240] Sun, 18 March 2007 05:08 Go to next message
Eclipse UserFriend
Originally posted by: apaz.yahoo.com

Hi,

I'm using the XDebug plugin with the path mapper (v 0.1.4).
I found out that if there are multiple files with the same name and you
put a breakpoint on one of them file, when the breakpoint is reached
Eclipse doesn't necessarily open the correct file, but the first one it
finds on that project with the given name.
So for example, I have these files
Project/add/index.php
Project/test/index.php
And I put a breakpoint in Project/test/index.php, when the breakpoint is
reached, Eclipse shows the source code of "Project/add'index.php"

Is this a known issue? Will it be fixed in the next release? If not any
suggestions what might be causing this and where should I start looking
to fix it?

I think something similar (if not the same) was fixed on previous releases.

Thanks!

-a.
Re: XDebug with path mapper problem [message #6256 is a reply to message #6240] Sun, 18 March 2007 18:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johan.bobsworld.be

Hello Andres

The same problem happend with me. It's a known bug but I'm not sure if
this get's fixed because the path mapper is only "quick hack" made by an
enthousiast.
The next version of XDebug will have an extension point for path mappers
and a simple path mapper example. Maybe Dave Kelsey can forsee this bug
for his next release of the XDebug plugin.

Regards
Johan Vandeweerd

Andres Paz wrote:
> Hi,
>
> I'm using the XDebug plugin with the path mapper (v 0.1.4).
> I found out that if there are multiple files with the same name and you
> put a breakpoint on one of them file, when the breakpoint is reached
> Eclipse doesn't necessarily open the correct file, but the first one it
> finds on that project with the given name.
> So for example, I have these files
> Project/add/index.php
> Project/test/index.php
> And I put a breakpoint in Project/test/index.php, when the breakpoint is
> reached, Eclipse shows the source code of "Project/add'index.php"
>
> Is this a known issue? Will it be fixed in the next release? If not any
> suggestions what might be causing this and where should I start looking
> to fix it?
>
> I think something similar (if not the same) was fixed on previous releases.
>
> Thanks!
>
> -a.
Re: XDebug with path mapper problem [message #7535 is a reply to message #6256] Mon, 19 March 2007 10:38 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
I suspect the problem with the PathMapper version is that it remaps the outbound
file name, but doesn't remap the inbound file name.
The extension point requires the implementer to handle both directions and the
sample one I have locates the correct file when you have 2 of the same name so
hopefully max will be able to re-implement his pathmapper to this interface and
this will resolve the problem.

I am still waiting for PDT 0.7 to be released so I provide a version that works
with that release.

regards
Dave Kelsey


Johan Vandeweerd wrote:
> Hello Andres
>
> The same problem happend with me. It's a known bug but I'm not sure if
> this get's fixed because the path mapper is only "quick hack" made by an
> enthousiast.
> The next version of XDebug will have an extension point for path mappers
> and a simple path mapper example. Maybe Dave Kelsey can forsee this bug
> for his next release of the XDebug plugin.
>
> Regards
> Johan Vandeweerd
>
> Andres Paz wrote:
>> Hi,
>>
>> I'm using the XDebug plugin with the path mapper (v 0.1.4).
>> I found out that if there are multiple files with the same name and
>> you put a breakpoint on one of them file, when the breakpoint is
>> reached Eclipse doesn't necessarily open the correct file, but the
>> first one it finds on that project with the given name.
>> So for example, I have these files
>> Project/add/index.php
>> Project/test/index.php
>> And I put a breakpoint in Project/test/index.php, when the breakpoint is
>> reached, Eclipse shows the source code of "Project/add'index.php"
>>
>> Is this a known issue? Will it be fixed in the next release? If not any
>> suggestions what might be causing this and where should I start
>> looking to fix it?
>>
>> I think something similar (if not the same) was fixed on previous
>> releases.
>>
>> Thanks!
>>
>> -a.
Re: XDebug with path mapper problem [message #8970 is a reply to message #7535] Fri, 23 March 2007 12:35 Go to previous message
Eclipse UserFriend
Originally posted by: dominic.clifton.gr-tech.net

Hey Dave!

>I suspect the problem with the PathMapper version is that it remaps the
>outbound
> file name, but doesn't remap the inbound file name.

That's where I was going to suggest the problem was. It definately appears
to make sense as pdt has to map the path when setting break points (before
the script is executed on the server (and while paused in the debugger,
before resuming) and in reverse when those breakpoints are hit by the php
interpreter.

Dom
Previous Topic:newbe again - lost auto variables
Next Topic:XDebug can't find my sources for remote launch
Goto Forum:
  


Current Time: Fri Nov 08 23:39:57 GMT 2024

Powered by FUDForum. Page generated in 0.03259 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top