Jump to content

How to install XDebug for PHP5 on windows?


ivytony

Recommended Posts

I am using Apache + PHP 5.2.8 on my laptop installed with Windows Vista 32 and it works just fine. I have been trying to install XDebug since last night, but haven't got any luck getting it to work.

 

Basically, I downloaded the .dll binary file (5.3 VC9) from http://www.xdebug.org/download.php, and put it in the PHP extension directory (C:\php\ext), then changed the php.ini to below:

 

uncommented this line:

extension=php_xdebug.dll

 

added this block at the end of the file:

 

[XDebug]

;; Only Zend OR (!) XDebug

zend_extension_ts="C:\php\ext\php_xdebug-2.0.4-5.3.0-vc9.dll"

xdebug.remote_enable=true

xdebug.remote_host=localhost

xdebug.remote_port=10000

xdebug.remote_handler=dbgp

xdebug.profiler_enable=1

xdebug.profiler_output_dir="C:\php\xdebug\tmp"

 

I restarted my apache, but I still couldn't find the XDebug section in my phpinfo.php output. I wonder what else I need to do?

 

Thanks in advance!

 

 

Link to comment
Share on other sites

You dont need to add php_xdebug.dll to the extension= list you only need to add the block of configuration that you added. Make sure zend_extension_ts= points to the dll file you just downloaded

 

After making changes to the php.ini restart your http server.

 

Also as you're using php5.2.x you should of downloaded 5.2 VC6 not 5.3 VC9

Link to comment
Share on other sites

You dont need to add php_xdebug.dll to the extension= list you only need to add the block of configuration that you added. Make sure zend_extension_ts= points to the dll file you just downloaded

 

After making changes to the php.ini restart your http server.

 

Also as you're using php5.2.x you should of downloaded 5.2 VC6 not 5.3 VC9

 

all right, I just did what you suggested here, but I still cannot see the 'xdebug' shown in my phpinfo.php output. any ideas? :( thanks

Link to comment
Share on other sites

phpinfo() shows:

 

1. Loaded Configuration File C:\php\php.ini

 

2. Loaded Modules:

 

core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_php5

 

 

 

Here's the error message in apache error logs:

 

Xdebug requires Zend Engine API version 220070929.

The Zend Engine API version 220060519 which is installed, is outdated.

 

 

I wonder what this means?

Link to comment
Share on other sites

Hello, I'm totaly newbie in PHP and it is my first post so don't be to mean:D

 

Today i had similar problem.

Problem was in bad file path.

 

I'm using WAMP pack so probably this is diffrent situation, but if you are  using PHP as Apache module,  your PHP.INI have to be somewhere here: "/php5/apache/php.ini "

 

in XAMPP:"apache/bin/php.ini"

 

in WAMP: "wamp/bin/apache/Apache2.2.11/bin/php.ini"

 

In first moment i tried to edit: "wamp/bin/php/php5.2.8/php.ini". 

That was my mistake. This .ini was first one I found. :'(

 

 

I have php 5.2.8

xdebug - php_xdebug-2.0.4-5.2.8.dll

everything is ok now.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.