Xdebug: files with same name [message #2869] |
Sat, 03 March 2007 12:51 |
Eclipse User |
|
|
|
Originally posted by: johan.bobsworld.be
Hello
In my project I have an index.php in the root directory and an index.php
in a subfolder named test. When I set a breakpoint in the test/index.php
and run the script, xdebug takes me to the debug screen of eclipse, but
the sourcefile of the index.php in the root of the project is shown
instead of the test/index.php.
Have the same problem with classes that have the same name, but are in
another folder.
Is this a known bug? Or is something wrong with the configuration of my
project?
Thanks in advance.
Johan Vandeweerd
|
|
|
|
Re: Xdebug: files with same name [message #2942 is a reply to message #2924] |
Mon, 05 March 2007 21:00 |
Eclipse User |
|
|
|
Originally posted by: johan.bobsworld.be
Hi
Yes, I'm using path mapper. I installed PDT 0.7 20070130 with xdebug
0.1.3.logik
My desktop pc is windows xp and my apache server is on debian. The
document root is shared with samba.
Doc root is in /var/www and shared and mounted as j: drive.
I've mapped j:/someproject to /var/www/someproject. Both with forward
slash and without a slash at the end.
The rest of debugging works like a charm (thanks for that btw ;-).
Regards
Johan Vandeweerd
Dave Kelsey wrote:
> A quick test works for me if I have an index.php and a test/index.php an I
> do a web launch for index.php I enter that version and if I launch on
> /test/index.php
> I use that copy. In my case I am not using the path mapper version and
> my apache
> document root is pointing to my workspace.
>
>
> Are you using the path mapper version ?
> where are you pointing your apache document root to ?
>
> Dave Kelsey
>
>
>
> Johan Vandeweerd wrote:
>> Hello
>>
>> In my project I have an index.php in the root directory and an
>> index.php in a subfolder named test. When I set a breakpoint in the
>> test/index.php and run the script, xdebug takes me to the debug screen
>> of eclipse, but the sourcefile of the index.php in the root of the
>> project is shown instead of the test/index.php.
>> Have the same problem with classes that have the same name, but are in
>> another folder.
>>
>> Is this a known bug? Or is something wrong with the configuration of
>> my project?
>>
>> Thanks in advance.
>> Johan Vandeweerd
|
|
|
|
Re: Xdebug: files with same name [message #2975 is a reply to message #2958] |
Tue, 06 March 2007 14:13 |
Eclipse User |
|
|
|
Originally posted by: johan.bobsworld.be
Hello
Only one. Currently I'm only working on one project and the root folder
of that project is mapped.
Are you planning to implement a workaround/fix for the mapping problem
or is it going to stay with the hack (no offence, I'm very happy with
the path mapper)?
Regards
Johan Vandeweerd
Dave Kelsey wrote:
> Hi Johan, It is probably an issue with the path mapper version.
> Hopefully the
> owner of that code can look into it. Sorry I can't help further.
>
> Just out of curiosity, how many different mappings do you use on a
> single launch ?
>
> Dave Kelsey
>
>
> Johan Vandeweerd wrote:
>> Hi
>>
>> Yes, I'm using path mapper. I installed PDT 0.7 20070130 with xdebug
>> 0.1.3.logik
>>
>> My desktop pc is windows xp and my apache server is on debian. The
>> document root is shared with samba.
>> Doc root is in /var/www and shared and mounted as j: drive.
>>
>> I've mapped j:/someproject to /var/www/someproject. Both with forward
>> slash and without a slash at the end.
>> The rest of debugging works like a charm (thanks for that btw ;-).
>>
>> Regards
>> Johan Vandeweerd
>>
>>
>> Dave Kelsey wrote:
>>> A quick test works for me if I have an index.php and a test/index.php
>>> an I
>>> do a web launch for index.php I enter that version and if I launch on
>>> /test/index.php
>>> I use that copy. In my case I am not using the path mapper version
>>> and my apache
>>> document root is pointing to my workspace.
>>>
>>>
>>> Are you using the path mapper version ?
>>> where are you pointing your apache document root to ?
>>>
>>> Dave Kelsey
>>>
>>>
>>>
>>> Johan Vandeweerd wrote:
>>>> Hello
>>>>
>>>> In my project I have an index.php in the root directory and an
>>>> index.php in a subfolder named test. When I set a breakpoint in the
>>>> test/index.php and run the script, xdebug takes me to the debug
>>>> screen of eclipse, but the sourcefile of the index.php in the root
>>>> of the project is shown instead of the test/index.php.
>>>> Have the same problem with classes that have the same name, but are
>>>> in another folder.
>>>>
>>>> Is this a known bug? Or is something wrong with the configuration of
>>>> my project?
>>>>
>>>> Thanks in advance.
>>>> Johan Vandeweerd
|
|
|
|
Re: Xdebug: files with same name [message #9079 is a reply to message #2869] |
Fri, 23 March 2007 13:25 |
Eclipse User |
|
|
|
Originally posted by: dominic.clifton.gr-tech.net
There is actually a workaround for this until a proper solution is
implemented:
* Start an xdebug session
* Switch to the "PHP Debug" perspective
* In The "Debug" view, right click the "PHP Web Script with XDebug" (or
whatever type of debugger you're using) and from the context menu that
appears select "Edit source lookup..".
* Tick "Search for duplicate files on the path"
Now whenever you hit a breakpoint in a file that has the same name as
another file you'll be prompted to select the right file.
Not ideal, but it does appear to work ok for me, hope this helps.
Dom
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04957 seconds