Server Location Path for PHP debugger in Eclipse [message #251928] |
Wed, 19 March 2008 22:33  |
Eclipse User |
|
|
|
Originally posted by: keithsorbo.gmail.com
(This is a newcomer forum right? Another dumb question.)
I have installed Eclipse Europa 3.3.1
I have got the Zend debugger working.
I want to set things up to allow me to debug forms. I understand I have to
set up a PHP Web page to do so. I have done everything but am stuck on
configuring the PHP Server.
What path do I enter for the Server Location Path?
For Server I have set Host as the name and http://localhost as the "URL
that points to the document root of this server"
Under path mapping, I have placed the full path to the location of my
workspace and browsed to my project.
Yet when I debug using this setup, I get an error.
What am I doing wrong?
|
|
|
Re: Server Location Path for PHP debugger in Eclipse [message #251980 is a reply to message #251928] |
Thu, 20 March 2008 10:05   |
Eclipse User |
|
|
|
Keith wrote:
> (This is a newcomer forum right?
Would I be here if it weren't? :-)
> Another dumb question.)
>
> I have installed Eclipse Europa 3.3.1
>
> I have got the Zend debugger working.
>
> I want to set things up to allow me to debug forms. I understand I have
> to set up a PHP Web page to do so. I have done everything but am stuck
> on configuring the PHP Server.
Ok, first off, there's two different places you could be doing this
(although the answer is probably the same either way). First is Window
-> Preferences... -> PHP -> PHP Server, where you can configure a list
of possible servers to use and indicate a default choice. The other is
the run configuration for your particular project (Run -> Open Run
Dialog... -> (select configuration) -> Server).
> What path do I enter for the Server Location Path?
That depends on where your server is. :-) The default
(http://localhost) should work if you have a PHP-enabled web server
running on the machine where you are doing the development. If not, you
need to push your project files to a suitable remote server and point
toward that.
> For Server I have set Host as the name and http://localhost as the "URL
> that points to the document root of this server"
>
> Under path mapping, I have placed the full path to the location of my
> workspace and browsed to my project.
Is your project visible to the web server?
Yesterday I did a quick PHP project and (force of habit) started by
creating a new project in my Eclipse workspace. Problem is, my
workspace is not under the server root. In other words (actual paths
changed for security reasons), my HTTP service has document root
C:\webstuff, whereas my Eclipse workspace is C:\Paul\Eclipse. Thus
http://localhost/myproject/index.php maps to
C:\webstuff\myproject\index.php, whereas the MyProject folder under
Eclipse is in C:\Paul\Eclipse\MyProject. Once my brain unfroze, I moved
the project files under the webroot.
Note that using the path mapping field in the Run dialog to map a
"virtual" path under your webroot to an actual path in your Eclipse
workspace won't work (AFAIK, and I've tried this) if your workspace is
not a directory known to the web service.
>
> Yet when I debug using this setup, I get an error.
> What am I doing wrong?
Depends on what the error was, but my first guess is adventures in path
mapping.
/Paul
|
|
|
|
Re: Server Location Path for PHP debugger in Eclipse [message #252069 is a reply to message #252060] |
Fri, 21 March 2008 11:05  |
Eclipse User |
|
|
|
Keith wrote:
>
> From what you have written, I understand that I have to make my WAMP
> server do the work. Like you, I did not have my project under the web
> document home.
There are various FOSS "personal servers" that you can get to create a
small web server on your development machine for debugging purposes.
The catch is that I don't know if any of them support PHP.
>
> Sure appreciate your taking the time to explain all this.
No sweat.
/Paul
|
|
|
Powered by
FUDForum. Page generated in 0.04737 seconds