Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6927017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:59:37+00:00 2026-05-27T10:59:37+00:00

I have just installed Eclipse PDT 3.0.2 (I don’t know what Eclipse base this

  • 0

I have just installed Eclipse PDT 3.0.2 (I don’t know what Eclipse base this is, Galileo or Helios), and have been enjoying the step up from NetBeans. In getting more serious about my PHP development (I have recently expanded from only ASP.NET), I decided to move from editing my PHP files directly under my Xampp Apache doc root (htdocs), and have created a workspace under my usual source location, c:\development.

It seems to me, from what I have been able to quickly glean from all the horribly disparate resources on debugging PHP files under PDT, that the files need to be debugged under Apache, and thus copied to htdocs. Is there a local debugging option that doesn’t require deployment or a PHP server, and how do I get closer to using this type of debugger?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:59:38+00:00Added an answer on May 27, 2026 at 10:59 am

    It seems to me […] that the files need to be debugged under Apache, and thus copied to htdocs.

    No, you can do what I (and probably thousands of other developers, as the other answers indicate) do:

    Leave your development files in your home directory, where they belong, and configure your local Web server so that the DocumentRoot for a name-based virtual host is your development root (or a subdirectory of it).

    The minimum Apache configuration would look like so:

    <VirtualHost *:80>
      ServerName localhost
      ServerAlias 127.0.0.1
      DocumentRoot C:/development/
    
      <Directory "C:/development">
        # helpful if you want to browse your files
        Options +Indexes
      </Directory>
    </VirtualHost>
    

    The line

    127.0.0.1  localhost
    

    should be in your hosts file already, so you should not need to make any changes there. (However, if you think you need another hostname alias, just go for it. I have currently defined 3 additional ones for testing purposes.)

    The Apache manual and other default Apache resources should still be available then by default (here: http://localhost/manual/ etc.). For example (I am on Debian GNU/Linux here, so I do not know the exact XAMPP paths):

    Alias /manual "C:/Program Files/XAMPP/apache/manual/"
    
    <Directory "C:/Program Files/XAMPP/apache/manual/">
      Options Indexes FollowSymlinks MultiViews
      AllowOverride None
      Order allow,deny
      Allow from all
      AddDefaultCharset off
    </Directory>
    

    (It says so – in Linuxese, of course – in my default /etc/apache2/conf.d/apache2-doc.) See the excellent XAMPP documentation for details.

    Is there a local debugging option that doesn’t require deployment or a PHP server, and how do I get closer to using this type of debugger?

    I do not understand that question. There is no “PHP server”. There is Zend Server – do you mean that?

    If you want to debug PHP scripts for a Web server like Apache, you need to run PHP on that server. In the case of Apache, either as an Apache module, as a CGI handler, or under FastCGI. You only do not need a server if you are developing CLI-PHP scripts. The XAMPP installer should have set that up for you already.

    Assuming from your posting that you want to debug PHP scripts that should run on Apache with the PHP module (run a PHP script with <?php phpinfo(); to be sure; I just do not have active PHP debugging experience with anything else), you can configure PDT so that it uses Remote Debugging with the above local virtual host. For that, you also need a server-side debug module for PHP, for example Xdebug or Zend Debugger (the debug clients for both are included in PDT). I had been using Zend Debugger before, but now I am using Xdebug (with PDT 3.0.0v20110516-… in Eclipse 3.7.1 [“Indigo” SR1, released September 2011]¹) because it is free software, packaged with Debian, and highly configurable and capable even though it is for free as well.

    This article helped me in particular: PHP remote debugging with Xdebug and Eclipse PDT.
    See the Xdebug documentation for more (e. g., independence of client IP addresses).

    However, a wealth of information about PDT and debugging with PDT can be found at the PDT Downloads site.

    Bottom line: If you are debugging on localhost, you do not have to deploy your code because you have deployed your code already, just by having it in or below the DocumentRoot. Eclipse PDT does not care where the remote code is located; it only accesses a resource via an HTTP URI. If that starts with http://localhost/, so be it 🙂

    (Copying the resources around carries with it the risk of inconsistencies and accidentally overwriting Apache files, so do not do that.)

    ¹ There is no PHP package for Eclipse Indigo, but you can start e. g. with Eclipse 3.7.1 Classic and install PDT on top of it using the Update Manager. Just select the “Indigo” (or whatever) repository, then “PHP Development Tools” under “Programming Languages”. Dependencies should be resolved automatically. See also PDT/Installation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just installed Eclipse Galileo, but have no JSP editor. In file associations, on
I've just been setting up a new 10 netbook and have just installed Eclipse
I have just installed the IMP plugin for Eclipse but the IMP menus don't
I have just installed Eclipse 3.4 and found out that there is not a
I have just installed Eclipse CDT on my machine for developping C++ applications. I
I have just got a new computer and installed Eclipse Indigo and all of
I just installed the latest galileo eclipse release. I added the latest adt plugin
I have Eclipse Helios SR1 installed on Windows XP. I am writing/debugging Java code
I have just installed Eclipse 3.7 Indigo . What should I use for svn?
I have installed the latest android sdk (android-sdk_r10-windows.zip), latest eclipse helios (eclipse-jee-helios-SR2-win32.zip) and latest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.