XDebug can't find my sources for remote launch [message #4015] |
Thu, 08 March 2007 12:18 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mark.howellsfamily.org.uk
When I initiate a remote launch of my scripts the XDebug plugin reports
that it can't find my source.
I have a remote Linux/Apache server. The DocumentRoot is (and has to
be) set to /var/www/localhost/htdocs.
Here's the structure of my Eclipse Project
GiftCertificates [GiftCertificates/trunk]
TestHarness
TestFactory.php <--- This is what I need to execute & break at
VoucherFactory
VoucherFactory.php <--- This is included by TestFactory
The project is copied to the server as
"/var/www/localhost/htdocs/GiftCertificates"
leading to a launch URL of
"http://myserver/GiftCertificates/TestFactory.php"
I've tried just about every setting permutation for Context Root and
script I can think of but I always get a message
"Source not found for
var/www/localhost/htdocs/GiftCertificates/TestHarness/TestFa ctory.php.{main}
: lineno 2. Please add the file to the Project or Include Path in
project, or structure the files in Project/Include Path to more closely
resemble the layout of the files on the server." when I launch
I can debug my variables and step etc so it is debugging, but without
source view it's of limited value... :(
Can you suggest what I should put in the Debug Settings for this
project? If it's relevant, whatever I enter into the dialog leaves an
error message in the top of the dialog "File / Project does not exist"
BTW I'm using the PDT (RC2) "All in one" with XDebug support v0.1.3
Thanks
Mark
|
|
|
|
Re: XDebug can't find my sources for remote launch [message #4302 is a reply to message #4162] |
Thu, 08 March 2007 14:33 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mark.howellsfamily.org.uk
Hi Dave,
Dave Kelsey wrote:
> Hi Mark. The Xdebug implementation currently requires you to have your
> document
> root point to your workspace, otherwise it cannot locate the source file
> (see enclosed
> PDF user guide)
I saw that in the PDF but didnt realize that it was an absolute
requirement. Just to confirm then, this means that one cannot debug a
remote PHP script using this version?
> There is a "Path Mapper" version based on 0.13 available as well which
> was contributed
> by someone else which you could try.
I saw this in the bugzilla but didn't fully appreciate what it was. I'll
give this a shot and report back..
Cheers
Mark
>
> Dave Kelsey
>
>
> Mark Howells wrote:
>> When I initiate a remote launch of my scripts the XDebug plugin reports
>> that it can't find my source.
>>
>> I have a remote Linux/Apache server. The DocumentRoot is (and has to
>> be) set to /var/www/localhost/htdocs.
>>
>> Here's the structure of my Eclipse Project
>>
>> GiftCertificates [GiftCertificates/trunk]
>> TestHarness
>> TestFactory.php <--- This is what I need to execute & break at
>> VoucherFactory
>> VoucherFactory.php <--- This is included by TestFactory
>>
>> The project is copied to the server as
>> "/var/www/localhost/htdocs/GiftCertificates"
>>
>> leading to a launch URL of
>> "http://myserver/GiftCertificates/TestFactory.php"
>>
>>
>> I've tried just about every setting permutation for Context Root and
>> script I can think of but I always get a message
>> "Source not found for
>> var/www/localhost/htdocs/GiftCertificates/TestHarness/TestFa ctory.php.{main}
>> : lineno 2. Please add the file to the Project or Include Path in
>> project, or structure the files in Project/Include Path to more
>> closely resemble the layout of the files on the server." when I launch
>>
>> I can debug my variables and step etc so it is debugging, but without
>> source view it's of limited value... :(
>>
>> Can you suggest what I should put in the Debug Settings for this
>> project? If it's relevant, whatever I enter into the dialog leaves an
>> error message in the top of the dialog "File / Project does not exist"
>>
>> BTW I'm using the PDT (RC2) "All in one" with XDebug support v0.1.3
>>
>> Thanks
>>
>> Mark
|
|
|
Re: XDebug can't find my sources for remote launch [message #4441 is a reply to message #4162] |
Thu, 08 March 2007 15:02 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mark.howellsfamily.org.uk
Dave Kelsey wrote:
>
> There is a "Path Mapper" version based on 0.13 available as well which
> was contributed
> by someone else which you could try.
Hmmm, I extracted the Path Mapper version and it appears to work the
same as before. However I suspect it's not installed properly as I don't
see the mapping dialog described and there's no XDebug feature to emable
(as described). There's a jar file in the features folder, do I just
copy that to eclipse\features and run "eclipse -clean"? All else in
that folder are folders with files...
Cheers
Mark
|
|
|
Re: XDebug can't find my sources for remote launch [message #4511 is a reply to message #4441] |
Fri, 09 March 2007 07:59 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: johan.bobsworld.be
Mark
You should have a entry when you go to window -> preferences -> PHP.
There should be the option XDebug rewrite where you can enter the
rewrite rules.
If you don't have that, check if the plugin is enabled.
Regards
Johan Vandeweerd
Mark Howells wrote:
> Dave Kelsey wrote:
>>
>> There is a "Path Mapper" version based on 0.13 available as well which
>> was contributed
>> by someone else which you could try.
>
> Hmmm, I extracted the Path Mapper version and it appears to work the
> same as before. However I suspect it's not installed properly as I don't
> see the mapping dialog described and there's no XDebug feature to emable
> (as described). There's a jar file in the features folder, do I just
> copy that to eclipse\features and run "eclipse -clean"? All else in
> that folder are folders with files...
>
> Cheers
>
> Mark
|
|
|
Re: XDebug can't find my sources for remote launch [message #4580 is a reply to message #4511] |
Fri, 09 March 2007 09:06 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mark.howellsfamily.org.uk
Johan,
> You should have a entry when you go to window -> preferences -> PHP.
> There should be the option XDebug rewrite where you can enter the
> rewrite rules.
Thanks for that, I had misread the docs and thought the rewrite rules
were in the Debug Launch config. dialog. I now have source level
debugging working so I'll see how I get on.
I feel strongly that this project needs a fully Opensource debugging
system so if there's anything I can do to help...
Mark
|
|
|
Re: XDebug can't find my sources for remote launch [message #4648 is a reply to message #4580] |
Fri, 09 March 2007 11:19 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mark.howellsfamily.org.uk
> Thanks for that, I had misread the docs and thought the rewrite rules
> were in the Debug Launch config. dialog. I now have source level
> debugging working so I'll see how I get on.
Johan,
I can single step my code and evaluate variables, but my breakpoints are
being ignored. Do you have breakpoints working using XDebug with filemapper?
Mark
|
|
|
|
Re: XDebug can't find my sources for remote launch [message #4785 is a reply to message #4648] |
Fri, 09 March 2007 12:23 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: johan.bobsworld.be
Mark
In my configuration I have no problems with the breakpoints. If I set a
breakpoint in the middle of a script or in an include file, he stops at
the breakpoint. I don't use break at first line.
My breakpoints were also ignored in a previous version of PDT. Currently
I'm using PDT Feature 0.70 20070130 and the xdebug feature 1.3 logik
(file mapper version).
Hope this helps.
Regards
Johan Vandeweerd
Mark Howells wrote:
>> Thanks for that, I had misread the docs and thought the rewrite rules
>> were in the Debug Launch config. dialog. I now have source level
>> debugging working so I'll see how I get on.
>
> Johan,
>
> I can single step my code and evaluate variables, but my breakpoints are
> being ignored. Do you have breakpoints working using XDebug with
> filemapper?
>
> Mark
|
|
|
Re: XDebug can't find my sources for remote launch [message #4854 is a reply to message #4785] |
Fri, 09 March 2007 13:06 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mark.howellsfamily.org.uk
Johan Vandeweerd wrote:
> Mark
>
> In my configuration I have no problems with the breakpoints. If I set a
> breakpoint in the middle of a script or in an include file, he stops at
> the breakpoint. I don't use break at first line.
> My breakpoints were also ignored in a previous version of PDT. Currently
> I'm using PDT Feature 0.70 20070130 and the xdebug feature 1.3 logik
> (file mapper version).
I'm using the same s/w then. Perhaps it's to do with the way I have my
mapping set up. I have
Remote Server: Document Root = /var/www/localhost/htdocs
Workspace: C:\Documents and Settings\mark\workspace
Project: C:\Documents and Settings\mark\workspace\GiftCertificates
Launch Config
-------------
Script:/GiftCertificates/TestHarness/TestFactory.php
Server:
Context Root:GiftCertificates
Launch URL: http://drno/GiftCertificates/TestHarness/testcerts.php
FileMapping
-----------
From - c:/Documents and Settings/mark/workspace/GiftCertificates
To - var/www/localhost/htdocs/GiftCertificates
Breaking on first line works perfectly, and the correct files are opened
as I single step through the app. It's just that breakpoints are
ignored... :(
Mark
|
|
|
Re: XDebug can't find my sources for remote launch [message #4919 is a reply to message #4716] |
Fri, 09 March 2007 13:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mark.howellsfamily.org.uk
Hi Dave,
> I am hoping that once PDT 0.7 is complete, my contribution will be accepted
> and included in the PDT project.
>
> You can vote on the bugzilla page to show your interest in the XDebug
> support
> as well as continue to discuss it on the forum.
Will do.
> I fully agree that PDT should support an open source debugger as one is
> available.
Thanks for your great work so far.
Cheers
Mark
|
|
|
|
Re: XDebug can't find my sources for remote launch [message #5125 is a reply to message #4854] |
Fri, 09 March 2007 23:20 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: johan.bobsworld.be
Hello Mark
The problem is probably in your mapping. I tried a little test and it
seems that the file mapper can handle spaces in the paths very well.
Can you try to use another path without spaces in it.
Regard
Johan Vandeweerd
Mark Howells wrote:
> Johan Vandeweerd wrote:
>> Mark
>>
>> In my configuration I have no problems with the breakpoints. If I set
>> a breakpoint in the middle of a script or in an include file, he stops
>> at the breakpoint. I don't use break at first line.
>> My breakpoints were also ignored in a previous version of PDT.
>> Currently I'm using PDT Feature 0.70 20070130 and the xdebug feature
>> 1.3 logik (file mapper version).
>
> I'm using the same s/w then. Perhaps it's to do with the way I have my
> mapping set up. I have
>
> Remote Server: Document Root = /var/www/localhost/htdocs
> Workspace: C:\Documents and Settings\mark\workspace
> Project: C:\Documents and Settings\mark\workspace\GiftCertificates
>
> Launch Config
> -------------
> Script:/GiftCertificates/TestHarness/TestFactory.php
> Server:
> Context Root:GiftCertificates
> Launch URL: http://drno/GiftCertificates/TestHarness/testcerts.php
>
> FileMapping
> -----------
> From - c:/Documents and Settings/mark/workspace/GiftCertificates
> To - var/www/localhost/htdocs/GiftCertificates
>
> Breaking on first line works perfectly, and the correct files are opened
> as I single step through the app. It's just that breakpoints are
> ignored... :(
>
> Mark
|
|
|
Re: XDebug can't find my sources for remote launch [message #5262 is a reply to message #5125] |
Mon, 12 March 2007 11:19 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mark.howellsfamily.org.uk
Johan Vandeweerd wrote:
> Hello Mark
>
> The problem is probably in your mapping. I tried a little test and it
> seems that the file mapper can handle spaces in the paths very well.
> Can you try to use another path without spaces in it.
Still no success... :(
I now have moved my workspace to c:\tech\workspace and deleted/replaced
my breakpoint but it's still ignored....
Remote Server: Document Root = /var/www/localhost/htdocs
Workspace: C:tech\workspace
Project: C:\tech\workspace\GiftCertificates
Launch Config
-------------
Script:/GiftCertificates/TestHarness/TestFactory.php
Server:
Context Root:GiftCertificates
Launch URL: http://drno/GiftCertificates/TestHarness/testcerts.php
FileMapping
-----------
From - c:/tech/workspace/GiftCertificates
To - var/www/localhost/htdocs/GiftCertificates
I have a breakpoint set on line 4 of testcerts.php. Source mapping works
fine, as does break on first line. I've also tried including the
'TestHarness' subdir in the mapping but still no changes. Is there some
logging I can enable in the filemapper? Alternatively, how
straightforward is it to debug the filemapper code, I'm OK with working
with Java, but have never had to create anything that links to Eclipse.
Cheers
Mark
|
|
|
Re: XDebug can't find my sources for remote launch [SOLVLED] [message #6093 is a reply to message #4854] |
Wed, 14 March 2007 12:30 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mark.howellsfamily.org.uk
Mark Howells wrote:
> Johan Vandeweerd wrote:
>> Mark
>>
>> In my configuration I have no problems with the breakpoints. If I set
>> a breakpoint in the middle of a script or in an include file, he stops
>> at the breakpoint. I don't use break at first line.
>> My breakpoints were also ignored in a previous version of PDT.
>> Currently I'm using PDT Feature 0.70 20070130 and the xdebug feature
>> 1.3 logik (file mapper version).
>
> I'm using the same s/w then. Perhaps it's to do with the way I have my
> mapping set up. I have
>
> Remote Server: Document Root = /var/www/localhost/htdocs
> Workspace: C:\Documents and Settings\mark\workspace
> Project: C:\Documents and Settings\mark\workspace\GiftCertificates
>
> Launch Config
> -------------
> Script:/GiftCertificates/TestHarness/TestFactory.php
> Server:
> Context Root:GiftCertificates
> Launch URL: http://drno/GiftCertificates/TestHarness/testcerts.php
>
> FileMapping
> -----------
> From - c:/Documents and Settings/mark/workspace/GiftCertificates
> To - /var/www/localhost/htdocs/GiftCertificates
>
> Breaking on first line works perfectly, and the correct files are opened
> as I single step through the app. It's just that breakpoints are
> ignored... :(
The filemapper is very sensitive regarding case and spaces etc. The
above example was fixed using the settings
From - C:/tech/workspace/GiftCertificates
To - /var/www/localhost/htdocs/GiftCertificates
i.e. 'c:' -> 'C:' and the removal of any spaces in the pathnames (both
were required)...
So, I am now happily debugging my remote Linux box via eclipse on my
Windoze PC :)
Thanks to all for the help.
Mark
|
|
|
Re: XDebug can't find my sources for remote launch [message #9012 is a reply to message #4987] |
Fri, 23 March 2007 12:47 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: dominic.clifton.gr-tech.net
> And it's has the most votes right now in the PDT:
yay!
Let's see, i wonder why - oh, maybe because XDebug protocol is open and the
zend debugger isn't perhaps?
Just my two cent's, I'm an a funny mood today. :)
Dom
|
|
|
Powered by
FUDForum. Page generated in 0.05366 seconds