Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Identical files when debugging with xdebug in PDT 1.0
Identical files when debugging with xdebug in PDT 1.0 [message #56532] Wed, 03 October 2007 13:37 Go to next message
Eclipse UserFriend
Originally posted by: newsgroup.bobsworld.be

Hello all

I think this was a bug I had in one of the previous releases. When I
have these files in my project:
modules/admin/text.php
modules/user/text.php

And I try to debug modules/user/text.php and set a breakpoint, PDT stops
at the breakpoint (correct line number) but PDT opens the wrong file (in
this case modules/admin/text.php).

Is this a known bug or is something wrong with my configuration? Has any
body any suggestions or workarounds?

Server (debian)
Apache/2.2.4 (Debian)
PHP Version 5.2.3
Xdebug v2.0.0RC3

Workstation (winxp)
pdt-all-in-one-1.0-R20070917-win32

Greets
Johan Vandeweerd
Re: Identical files when debugging with xdebug in PDT 1.0 [message #56559 is a reply to message #56532] Wed, 03 October 2007 15:04 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Hi Johan,
A simple test with 2 files of the same name worked fine for me so I think
you need to describe your document root setup, workspace setup and the debug
launch setup.

I would also suggest moving to the official 2.0 release of XDebug as I don't
know if PDT will work properly with RC3 anymore.

Dave Kelsey


Johan Vandeweerd wrote:
> Hello all
>
> I think this was a bug I had in one of the previous releases. When I
> have these files in my project:
> modules/admin/text.php
> modules/user/text.php
>
> And I try to debug modules/user/text.php and set a breakpoint, PDT stops
> at the breakpoint (correct line number) but PDT opens the wrong file (in
> this case modules/admin/text.php).
>
> Is this a known bug or is something wrong with my configuration? Has any
> body any suggestions or workarounds?
>
> Server (debian)
> Apache/2.2.4 (Debian)
> PHP Version 5.2.3
> Xdebug v2.0.0RC3
>
> Workstation (winxp)
> pdt-all-in-one-1.0-R20070917-win32
>
> Greets
> Johan Vandeweerd
Re: Identical files when debugging with xdebug in PDT 1.0 [message #56585 is a reply to message #56559] Wed, 03 October 2007 16:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newsgroup.bobsworld.be

Hello

Apache (debian) has it's document root under "/var/www". I have multiple
subdomains and each subdomain has it's own directory in "/var/www"
reflecting it's domainname (virtual hosts).
The "/var/www" directory is shared with samba for my windows pc.

On my windows pc i use PDT 1.0 and I created a new project in
"/var/www/www.example.com". I use a front controller that parses the uri
and looks for the correct module and includes that module.
For example if I go to "www.example.com/admin/text", it will include the
module "modules/admin/text.php" and if you go to "www.example.com/text"
it wil include "modules/default/text.php".

When placing the breakpoint in "modules/default/text.php", it stops at
the breakpoint (correct line number), it shows all the variables of the
correct script ("modules/default/text.php") in the variables window, it
shows the correct path in the debug screen (stacktrace) eg
"/var/www/www.example.com/modules/default/text.php" but the content of
the editor is the content of "modules/admin/text.php" file (the one he
encounters first I guess).

In the debug launch setup, I have the following for tab Server:
Server Debugger: XDebug
PHP Server: the name of my local debian server (configured and changed
the name)
File / Project: /projectname/
Publish to server: disabled
Break at first line: unchecked
Auto generate url: manually adjusted to reflect my setup

tab Advanced:
Open in browser: checked
Debug all pages selected

tab Common: unchanged

Also upgraded to xdebug 2.0 btw.

Any idea's?

Thanks in advance
Johan Vandeweerd


Dave Kelsey wrote:
> Hi Johan,
> A simple test with 2 files of the same name worked fine for me so I think
> you need to describe your document root setup, workspace setup and the
> debug
> launch setup.
>
> I would also suggest moving to the official 2.0 release of XDebug as I
> don't
> know if PDT will work properly with RC3 anymore.
>
> Dave Kelsey
>
>
> Johan Vandeweerd wrote:
>> Hello all
>>
>> I think this was a bug I had in one of the previous releases. When I
>> have these files in my project:
>> modules/admin/text.php
>> modules/user/text.php
>>
>> And I try to debug modules/user/text.php and set a breakpoint, PDT
>> stops at the breakpoint (correct line number) but PDT opens the wrong
>> file (in this case modules/admin/text.php).
>>
>> Is this a known bug or is something wrong with my configuration? Has
>> any body any suggestions or workarounds?
>>
>> Server (debian)
>> Apache/2.2.4 (Debian)
>> PHP Version 5.2.3
>> Xdebug v2.0.0RC3
>>
>> Workstation (winxp)
>> pdt-all-in-one-1.0-R20070917-win32
>>
>> Greets
>> Johan Vandeweerd
Re: Identical files when debugging with xdebug in PDT 1.0 [message #56608 is a reply to message #56585] Wed, 03 October 2007 18:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: news.kasimir-k.fi

Hi,

I experience the same behavior. My setup is very similar, except my
server is on the same WinXP (Apache 2.2.4, PHP 5.2.2, Xdebug 2.0.0 (was
rc4, no difference)).

..k

Johan Vandeweerd scribeva in 03/10/2007 16:21:
> Hello
>
> Apache (debian) has it's document root under "/var/www". I have multiple
> subdomains and each subdomain has it's own directory in "/var/www"
> reflecting it's domainname (virtual hosts).
> The "/var/www" directory is shared with samba for my windows pc.
>
> On my windows pc i use PDT 1.0 and I created a new project in
> "/var/www/www.example.com". I use a front controller that parses the uri
> and looks for the correct module and includes that module.
> For example if I go to "www.example.com/admin/text", it will include the
> module "modules/admin/text.php" and if you go to "www.example.com/text"
> it wil include "modules/default/text.php".
>
> When placing the breakpoint in "modules/default/text.php", it stops at
> the breakpoint (correct line number), it shows all the variables of the
> correct script ("modules/default/text.php") in the variables window, it
> shows the correct path in the debug screen (stacktrace) eg
> "/var/www/www.example.com/modules/default/text.php" but the content of
> the editor is the content of "modules/admin/text.php" file (the one he
> encounters first I guess).
>
> In the debug launch setup, I have the following for tab Server:
> Server Debugger: XDebug
> PHP Server: the name of my local debian server (configured and changed
> the name)
> File / Project: /projectname/
> Publish to server: disabled
> Break at first line: unchecked
> Auto generate url: manually adjusted to reflect my setup
>
> tab Advanced:
> Open in browser: checked
> Debug all pages selected
>
> tab Common: unchanged
>
> Also upgraded to xdebug 2.0 btw.
>
> Any idea's?
>
> Thanks in advance
> Johan Vandeweerd
>
>
> Dave Kelsey wrote:
>> Hi Johan,
>> A simple test with 2 files of the same name worked fine for me so I think
>> you need to describe your document root setup, workspace setup and the
>> debug
>> launch setup.
>>
>> I would also suggest moving to the official 2.0 release of XDebug as I
>> don't
>> know if PDT will work properly with RC3 anymore.
>>
>> Dave Kelsey
>>
>>
>> Johan Vandeweerd wrote:
>>> Hello all
>>>
>>> I think this was a bug I had in one of the previous releases. When I
>>> have these files in my project:
>>> modules/admin/text.php
>>> modules/user/text.php
>>>
>>> And I try to debug modules/user/text.php and set a breakpoint, PDT
>>> stops at the breakpoint (correct line number) but PDT opens the wrong
>>> file (in this case modules/admin/text.php).
>>>
>>> Is this a known bug or is something wrong with my configuration? Has
>>> any body any suggestions or workarounds?
>>>
>>> Server (debian)
>>> Apache/2.2.4 (Debian)
>>> PHP Version 5.2.3
>>> Xdebug v2.0.0RC3
>>>
>>> Workstation (winxp)
>>> pdt-all-in-one-1.0-R20070917-win32
>>>
>>> Greets
>>> Johan Vandeweerd
Re: Identical files when debugging with xdebug in PDT 1.0 [message #56662 is a reply to message #56585] Wed, 03 October 2007 20:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotnospmail.com

Johan, in the launch configuration you need to specify the name of the
file that gets launched when the particular URL is specified. This is
how the auto pathmapper determines the path difference between the files
in your project and the files on the web server. Specifying a project
only means that path mapping won't work.

Try changing the launch and see if it helps.

Dave Kelsey

Johan Vandeweerd wrote:
> Hello
>
> Apache (debian) has it's document root under "/var/www". I have multiple
> subdomains and each subdomain has it's own directory in "/var/www"
> reflecting it's domainname (virtual hosts).
> The "/var/www" directory is shared with samba for my windows pc.
>
> On my windows pc i use PDT 1.0 and I created a new project in
> "/var/www/www.example.com". I use a front controller that parses the uri
> and looks for the correct module and includes that module.
> For example if I go to "www.example.com/admin/text", it will include the
> module "modules/admin/text.php" and if you go to "www.example.com/text"
> it wil include "modules/default/text.php".
>
> When placing the breakpoint in "modules/default/text.php", it stops at
> the breakpoint (correct line number), it shows all the variables of the
> correct script ("modules/default/text.php") in the variables window, it
> shows the correct path in the debug screen (stacktrace) eg
> "/var/www/www.example.com/modules/default/text.php" but the content of
> the editor is the content of "modules/admin/text.php" file (the one he
> encounters first I guess).
>
> In the debug launch setup, I have the following for tab Server:
> Server Debugger: XDebug
> PHP Server: the name of my local debian server (configured and changed
> the name)
> File / Project: /projectname/
> Publish to server: disabled
> Break at first line: unchecked
> Auto generate url: manually adjusted to reflect my setup
>
> tab Advanced:
> Open in browser: checked
> Debug all pages selected
>
> tab Common: unchanged
>
> Also upgraded to xdebug 2.0 btw.
>
> Any idea's?
>
> Thanks in advance
> Johan Vandeweerd
>
>
> Dave Kelsey wrote:
>> Hi Johan,
>> A simple test with 2 files of the same name worked fine for me so I think
>> you need to describe your document root setup, workspace setup and the
>> debug
>> launch setup.
>>
>> I would also suggest moving to the official 2.0 release of XDebug as I
>> don't
>> know if PDT will work properly with RC3 anymore.
>>
>> Dave Kelsey
>>
>>
>> Johan Vandeweerd wrote:
>>> Hello all
>>>
>>> I think this was a bug I had in one of the previous releases. When I
>>> have these files in my project:
>>> modules/admin/text.php
>>> modules/user/text.php
>>>
>>> And I try to debug modules/user/text.php and set a breakpoint, PDT
>>> stops at the breakpoint (correct line number) but PDT opens the wrong
>>> file (in this case modules/admin/text.php).
>>>
>>> Is this a known bug or is something wrong with my configuration? Has
>>> any body any suggestions or workarounds?
>>>
>>> Server (debian)
>>> Apache/2.2.4 (Debian)
>>> PHP Version 5.2.3
>>> Xdebug v2.0.0RC3
>>>
>>> Workstation (winxp)
>>> pdt-all-in-one-1.0-R20070917-win32
>>>
>>> Greets
>>> Johan Vandeweerd
Re: Identical files when debugging with xdebug in PDT 1.0 [message #56770 is a reply to message #56662] Thu, 04 October 2007 05:51 Go to previous message
Eclipse UserFriend
Originally posted by: newsgroup.bobsworld.be

Hello Dave

In my launch configuration I selected the index.php in the root of my
project and now it works. Thanks again.

Regards
Johan Vandeweerd


Dave wrote:
> Johan, in the launch configuration you need to specify the name of the
> file that gets launched when the particular URL is specified. This is
> how the auto pathmapper determines the path difference between the files
> in your project and the files on the web server. Specifying a project
> only means that path mapping won't work.
>
> Try changing the launch and see if it helps.
>
> Dave Kelsey
>
> Johan Vandeweerd wrote:
>> Hello
>>
>> Apache (debian) has it's document root under "/var/www". I have
>> multiple subdomains and each subdomain has it's own directory in
>> "/var/www" reflecting it's domainname (virtual hosts).
>> The "/var/www" directory is shared with samba for my windows pc.
>>
>> On my windows pc i use PDT 1.0 and I created a new project in
>> "/var/www/www.example.com". I use a front controller that parses the
>> uri and looks for the correct module and includes that module.
>> For example if I go to "www.example.com/admin/text", it will include
>> the module "modules/admin/text.php" and if you go to
>> "www.example.com/text" it wil include "modules/default/text.php".
>>
>> When placing the breakpoint in "modules/default/text.php", it stops at
>> the breakpoint (correct line number), it shows all the variables of
>> the correct script ("modules/default/text.php") in the variables
>> window, it shows the correct path in the debug screen (stacktrace) eg
>> "/var/www/www.example.com/modules/default/text.php" but the content of
>> the editor is the content of "modules/admin/text.php" file (the one he
>> encounters first I guess).
>>
>> In the debug launch setup, I have the following for tab Server:
>> Server Debugger: XDebug
>> PHP Server: the name of my local debian server (configured and changed
>> the name)
>> File / Project: /projectname/
>> Publish to server: disabled
>> Break at first line: unchecked
>> Auto generate url: manually adjusted to reflect my setup
>>
>> tab Advanced:
>> Open in browser: checked
>> Debug all pages selected
>>
>> tab Common: unchanged
>>
>> Also upgraded to xdebug 2.0 btw.
>>
>> Any idea's?
>>
>> Thanks in advance
>> Johan Vandeweerd
>>
>>
>> Dave Kelsey wrote:
>>> Hi Johan,
>>> A simple test with 2 files of the same name worked fine for me so I
>>> think
>>> you need to describe your document root setup, workspace setup and
>>> the debug
>>> launch setup.
>>>
>>> I would also suggest moving to the official 2.0 release of XDebug as
>>> I don't
>>> know if PDT will work properly with RC3 anymore.
>>>
>>> Dave Kelsey
>>>
>>>
>>> Johan Vandeweerd wrote:
>>>> Hello all
>>>>
>>>> I think this was a bug I had in one of the previous releases. When I
>>>> have these files in my project:
>>>> modules/admin/text.php
>>>> modules/user/text.php
>>>>
>>>> And I try to debug modules/user/text.php and set a breakpoint, PDT
>>>> stops at the breakpoint (correct line number) but PDT opens the
>>>> wrong file (in this case modules/admin/text.php).
>>>>
>>>> Is this a known bug or is something wrong with my configuration? Has
>>>> any body any suggestions or workarounds?
>>>>
>>>> Server (debian)
>>>> Apache/2.2.4 (Debian)
>>>> PHP Version 5.2.3
>>>> Xdebug v2.0.0RC3
>>>>
>>>> Workstation (winxp)
>>>> pdt-all-in-one-1.0-R20070917-win32
>>>>
>>>> Greets
>>>> Johan Vandeweerd
Previous Topic:XDebug and Breakpoints
Next Topic:Zend Debugger and breakpoints
Goto Forum:
  


Current Time: Sun Jun 30 13:52:05 GMT 2024

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

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

Back to the top