Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT Debug and identical named files
PDT Debug and identical named files [message #31809] Tue, 26 June 2007 16:40 Go to next message
Eclipse UserFriend
Hi all!

I have php-project (cakephp based) with identical named files in project
directory tree for example:
app/views/admin/index.ctp
app/views/user/index.ctp
(*.ctp is php files in the cakephp)

When I set breakpoint in app/views/user/index.ctp and start remote debug
for it - PDT opens php editor for app/views/admin/index.ctp instead. Also
though Debug View shows proper file in it's files trace tree - double
click on the debugged file still opens wrong file - so again opens
app/views/admin/index.ctp instead of app/views/user/index.ctp. Looks like
something wrong with debugged filename lookup - it just gets first file
found if it matches given filename (file path ignored). The same happened
during debug *.php files having indentical names in the different project
directories.

Looks like a bug.
I use latest xdebug plugin.

Igor.
Re: PDT Debug and identical named files [message #31845 is a reply to message #31809] Tue, 26 June 2007 17:04 Go to previous messageGo to next message
Eclipse UserFriend
I have found some solution to the problem by the "Edit source lookup"
function which presents all indentical file names list to choose proper
from :)

I'm not sure is this how PDT/Eclipse Debug designed? And why software
cannot determine proper file itself ? uncertain files paths mapping?

Thanks all for your concern.

Igor.
Re: PDT Debug and identical named files [message #31951 is a reply to message #31809] Wed, 27 June 2007 07:43 Go to previous messageGo to next message
Eclipse UserFriend
I thought I had fixed this a while ago. Can you describe your setup a bit
more ? For example are you using the Sample Path Mapper or do you have
apache pointing to your workspace.

and the Xdebug plugins are v0.2.2

It may be that the .ctp extension confuses the PDT lookup mechanism as
I just reuse what PDT provides.

Dave Kelsey

Igor wrote:
> Hi all!
>
> I have php-project (cakephp based) with identical named files in project
> directory tree for example:
> app/views/admin/index.ctp
> app/views/user/index.ctp
> (*.ctp is php files in the cakephp)
>
> When I set breakpoint in app/views/user/index.ctp and start remote debug
> for it - PDT opens php editor for app/views/admin/index.ctp instead.
> Also though Debug View shows proper file in it's files trace tree -
> double click on the debugged file still opens wrong file - so again
> opens app/views/admin/index.ctp instead of app/views/user/index.ctp.
> Looks like something wrong with debugged filename lookup - it just gets
> first file found if it matches given filename (file path ignored). The
> same happened during debug *.php files having indentical names in the
> different project directories.
>
> Looks like a bug.
> I use latest xdebug plugin.
>
> Igor.
>
Re: PDT Debug and identical named files [message #32058 is a reply to message #31951] Wed, 27 June 2007 12:11 Go to previous messageGo to next message
Eclipse UserFriend
Dave,

Thanks for the great xdebug plugin and reply.

I do not use Sample Path Mapper, I just use Eclipse linked folder. In my
php project I have one root linked folder pointing to
apache_web_root/my_project where my project lives. My workspace located
outside of apache webroot. I just do not want to mix workspace data (all
settings, etc) with project files.

I use latest Xdebug plugins v0.2.2.

I have checked also normal *.php files with identical names - problem
persists - no concern to .ctp extension.

Anyway for now I use "Edit source lookup" and it eases things.

Igor.
Re: PDT Debug and identical named files [message #32197 is a reply to message #32058] Thu, 28 June 2007 03:48 Go to previous message
Eclipse UserFriend
I am pretty sure there are problems using eclipse linked folders, I did try
this out quickly a while ago and ran into problems and I do mention linked
files in the documentation won't be found by the debugger.

I didn't really look into more detail on this. It may be an issue with PDT
and its source lookup so I won't be able to fix this scenario.

Dave Kelsey

Igor wrote:
> Dave,
>
> Thanks for the great xdebug plugin and reply.
>
> I do not use Sample Path Mapper, I just use Eclipse linked folder. In my
> php project I have one root linked folder pointing to
> apache_web_root/my_project where my project lives. My workspace located
> outside of apache webroot. I just do not want to mix workspace data (all
> settings, etc) with project files.
>
> I use latest Xdebug plugins v0.2.2.
>
> I have checked also normal *.php files with identical names - problem
> persists - no concern to .ctp extension.
>
> Anyway for now I use "Edit source lookup" and it eases things.
>
> Igor.
>
Previous Topic:hang at 0% on "Building/Creating Model"
Next Topic:PDT Summer Camp! (did i mention FREE PHP T-shirts?)
Goto Forum:
  


Current Time: Sat May 10 01:07:57 EDT 2025

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

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

Back to the top