Search code examples
phpeclipseubuntu-9.04eclipse-pdt

how can i associate/use PDT with eclipse in ubuntu?terr


I want to use PDT to debug PHP with eclipse. I am using ubuntu 9.04. Can any one help me? please give details if possible.


Solution

  • Considering this thread and this one:

    You have to ensure that xdebug is definitely loaded on the version of php you are using.
    To do this, use the launch configuration you are using to try to run your script in debug mode and change it to run a script with phpinfo.php in it.
    Also a Debug log would be good.

    Add:

     xdebug.remote_autostart=On
     xdebug.remote_log="c:\temp\xdebug.log"
    

    to your php.ini.

    Then you have to insure that PDT is expecting Xdebug information on port 9000, and have insured that your local Default PHP Web Server is http://127.0.0.1.

    With the log, you might discover, for instance, that your php.ini files is not properly formatted, which could be enough to prevent you debugging PHP from PDT.