Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Path Mapping (advanced) problem
Path Mapping (advanced) problem [message #51299] Thu, 13 September 2007 20:10 Go to next message
Eclipse UserFriend
Originally posted by: schreck84.gmail.com

Hello all,

I am having a bit of a problem with the path mapping in RC1. I think I
understand the problem, but I wanted to get some clarification and possibly
help to solve this problem.

Our development server is Linux and we have 3 shares (\\server\cake,
\\server\cakeapps, and \\server\www)

The corresponding folder locations are as follows (/usr/lib/cake,
/usr/lib/CAKEAPPS, and /usr/var/wwwhome)

I think the path mapper is not taking this into account. I can debug the
first page, but any page in any core or app folder cannot be debugged. Is
this due to the difference in the share name and the local folder? Or is
this a problem with xDebug? Is the debugger not looking at the correct file
since it sees the paths differently?

I am currently using xDebug 2, PDT 1.0_RC-1, and CakePHP 1.2.

Any help on this would be greatly appreciated.

Thanks,
Jason Schreckengost
Re: Path Mapping (advanced) problem [message #51354 is a reply to message #51299] Thu, 13 September 2007 20:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schreck84.gmail.com

Sorry, a little bit more info about this:

I try to set break points in files in the other 2 directories (cake &
cakeapps), but the dubugger will not stop at them.
The break points I have in the entry file (www/index.php) work just fine.
That's why I believe this is a path mapping problem.

Thanks,
Jason "Schreck" Schreckengost
--------------------------------
"Jason Schreckengost" <schreck84@gmail.com> wrote in message
news:fcc5ci$bqd$1@build.eclipse.org...
> Hello all,
>
> I am having a bit of a problem with the path mapping in RC1. I think I
> understand the problem, but I wanted to get some clarification and
> possibly help to solve this problem.
>
> Our development server is Linux and we have 3 shares (\\server\cake,
> \\server\cakeapps, and \\server\www)
>
> The corresponding folder locations are as follows (/usr/lib/cake,
> /usr/lib/CAKEAPPS, and /usr/var/wwwhome)
>
> I think the path mapper is not taking this into account. I can debug the
> first page, but any page in any core or app folder cannot be debugged. Is
> this due to the difference in the share name and the local folder? Or is
> this a problem with xDebug? Is the debugger not looking at the correct
> file since it sees the paths differently?
>
> I am currently using xDebug 2, PDT 1.0_RC-1, and CakePHP 1.2.
>
> Any help on this would be greatly appreciated.
>
> Thanks,
> Jason Schreckengost
>
Re: Path Mapping (advanced) problem [message #51410 is a reply to message #51354] Thu, 13 September 2007 22:13 Go to previous message
Eclipse UserFriend
Originally posted by: dkel50.hotnospmail.com

Hi Jason

The automatic path mapper for xdebug can only determine the path based
on the initial web launch. So you specify the URL for the initial web
launch which will execute the initial script which has a specific path
on your web server. In the launch you specify the script in your
workspace. The path mapper determines the difference and uses that
difference to try to determine the location of the every remote file. If
the document root and web server structure don't match then the
difference is not the same and it cannot work. In order for it to work,
you need to ensure that your workspace minics the document root of your
webserver. It isn't possible (in an automated manner) to be able to
calculate the correct path mapping for scripts to set the breakpoints on
if the document root doesn't match the workspace structure (xdebug
requires the absolute file path of the script on the web server).

There is a document now available on the PDT website that describes the
automated path mapping capability of the xdebug support in PDT.

Dave Kelsey.



Jason Schreckengost wrote:
> Sorry, a little bit more info about this:
>
> I try to set break points in files in the other 2 directories (cake &
> cakeapps), but the dubugger will not stop at them.
> The break points I have in the entry file (www/index.php) work just fine.
> That's why I believe this is a path mapping problem.
>
> Thanks,
> Jason "Schreck" Schreckengost
> --------------------------------
> "Jason Schreckengost" <schreck84@gmail.com> wrote in message
> news:fcc5ci$bqd$1@build.eclipse.org...
>> Hello all,
>>
>> I am having a bit of a problem with the path mapping in RC1. I think I
>> understand the problem, but I wanted to get some clarification and
>> possibly help to solve this problem.
>>
>> Our development server is Linux and we have 3 shares (\\server\cake,
>> \\server\cakeapps, and \\server\www)
>>
>> The corresponding folder locations are as follows (/usr/lib/cake,
>> /usr/lib/CAKEAPPS, and /usr/var/wwwhome)
>>
>> I think the path mapper is not taking this into account. I can debug the
>> first page, but any page in any core or app folder cannot be debugged. Is
>> this due to the difference in the share name and the local folder? Or is
>> this a problem with xDebug? Is the debugger not looking at the correct
>> file since it sees the paths differently?
>>
>> I am currently using xDebug 2, PDT 1.0_RC-1, and CakePHP 1.2.
>>
>> Any help on this would be greatly appreciated.
>>
>> Thanks,
>> Jason Schreckengost
>>
>
>
Previous Topic:Bug: Eclipse locks up completely when expanding a minimized PHP Explorer after Eclipse has been laun
Next Topic:Bug: Code folding
Goto Forum:
  


Current Time: Thu Apr 25 00:52:16 GMT 2024

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

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

Back to the top