Skip to main content



      Home
Home » Newcomers » Newcomers » Server Location Path for PHP debugger in Eclipse
Server Location Path for PHP debugger in Eclipse [message #251928] Wed, 19 March 2008 22:33 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #252060 is a reply to message #251980] Thu, 20 March 2008 22:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: keithsorbo.gmail.com

Thanks, Paul,

I think I am beginning to understand. I was under the false understanding
that Eclipse has its own server. I was expecting that to work.

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.

Sure appreciate your taking the time to explain all this.

Keith
Re: Server Location Path for PHP debugger in Eclipse [message #252069 is a reply to message #252060] Fri, 21 March 2008 11:05 Go to previous message
Eclipse UserFriend
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
Previous Topic:Customize Copy/Paste action in CommonNavigator
Next Topic:How to find release notes between 3.3.1.1 and 3.3.2?
Goto Forum:
  


Current Time: Wed Jun 04 23:15:53 EDT 2025

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

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

Back to the top