[xdebug-general] Re: questions re installation with eclipse IDE and wamp server

From: Spencer Williams IV <enderandpeter[@]yahoo.com>
Date: Tue, 3 Jan 2017 13:24:00 -0700

On 12/30/16 3:14 AM, Trevor Rose wrote:
> Hi,
> I am trying to learn PHP for the first time, and so far here is what I
> have done:
> * Installed WAMP server
> * Installed Eclipse IDE for PHP
> * Run a basic index.php file in the built-in eclipse browser
> THEN (following instructions in a tutorial), it tells me to do the
> following:
> * go to Eclipse Window > Preferences > PHP > PHP Executables > Add
> * and add the location of the php.exe file (which I did)
> * then add the php.ini file (which I did)
> * then on the next page, it wants me to configure zend / Xdebug, and
> this is where I run into trouble, because it tells me that both
> xdebug and zend are not installed
> NOW, if I go to my php.ini file (
> C:\wamp64\bin\apache\apache2.4.23\bin\php.ini - the one actually being
> used by wamp), the last lines of it are as follows:
> ; XDEBUG Extension
> [xdebug]
> zend_extension
> ="C:/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll"
> xdebug.remote_enable = off
> xdebug.profiler_enable = off
> xdebug.profiler_enable_trigger = off
> xdebug.profiler_output_name = cachegrind.out.%t.%p
> xdebug.profiler_output_dir ="C:/wamp64/tmp"
> xdebug.show_local_vars=0
> ... all of which I am assuming was set by wamp itself, as I hadn't
> touched it yet.
> NOW ... on your install page, when I copy and paste myPhpAdmin
> phpInfo( ) results, i get this installation advice:
> Summary
> # *Xdebug installed:* no
> # *Server API:* Apache 2.0 Handler
> # *Windows:* yes - Compiler: MS VC11 - Architecture: x64
> # *Zend Server:* no
> # *PHP Version:* 5.6.25
> # *Zend API nr:* 220131226
> # *PHP API nr:* 20131226
> # *Debug Build:* no
> # *Thread Safe Build:* yes
> # *Configuration File Path:* C:\Windows
> # *Configuration File:* C:\wamp64\bin\apache\apache2.4.23\bin\php.ini
> # *Extensions directory:*
> Instructions
> 1. Download php_xdebug-2.5.0-5.6-vc11-x86_64.dll
> <http://xdebug.org/files/php_xdebug-2.5.0-5.6-vc11-x86_64.dll>
> 2. Move the downloaded file to
> 3. Edit |C:\wamp64\bin\apache\apache2.4.23\bin\php.ini| and add the line
> |zend_extension = \php_xdebug-2.5.0-5.6-vc11-x86_64.dll|
> 4. Restart the webserver
> which is fine except that it's already pointing to the previous
> version of php_xedebug-blah-.dll that's already there ... so I am a
> bit confused as to why it says it isn't installed if it is.
> If i follow the instructions in that tutorial, the debugger settings
> in eclipse seem to recognise xdebug but not zend (see screen capture):
> PastedImage-2.png
> SO I am really not sure what to do from here, and I cannot find an explanation of the relationship between zend and xdebug ... has this all got something to do with the fact that you've stated at the top of the thing that windows doesn't have full development of the project? SO I can install the files, but I cant get debugging activated? ... if so, I might try to set up a linux VM later, but just thought I would ask you if this is the case or whether I am missing something here?
> Regards & Best Wishes,
> Trevor Alexander Rose
> Galactic President

Hey, Trevor.

So, the first thing to confirm is that PHP recognizes the Xdebug
extension. I would think your configuration is alright if the xdebug DLL
is indeed at that path set for zend_extension. Make sure you definitely
have the file there or set the path to wherever it may be. If you have
the one that matches your PHP version, which it looks like it does, then
you should definitely see it acknowledge Xdebug in phpinfo(). If there
are still issues, check the section of extension settings for other
extensions in that file to see what kinds of paths are set for them.

You'll need to make sure it recognizes the module before continuing, but
when you setup Xdebug in Eclipse, you should first click the drop down
arrow next to the Debug icon to select Debug Configurations... and then
set up web server and debug settings for your project there. You will
first want a project in Eclipse to associate with the debug
configuration. You should checkout a guide I made on setting up a WAMP
server <https://drive.google.com/open?id=0B350iENeigm9bllQNllQMDkybm8>
with the separate programs which includes a section on Xdebug with
Eclipse on Windows. I hope it helps to walk you through what needs to be
done at that point.

-Spencer <http://aninternetpresence.net>
"What a lark! What a plunge!"
- Mrs. Dalloway <http://ebooks.adelaide.edu.au/w/woolf/virginia/w91md/>, 
Virginia Woolf
Received on Tue Jan 03 2017 - 20:32:50 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST