Enabling XDebug with WAMP
Posted by: radalin (195.174.20.---)
Date: October 27, 2008 12:27PM

Hi,

I have just installed Netbeans 6.5 RC1 for it's support to PHP and PHP Debugging. I'm trying to install xdebug on my wamp server but I can't seem to succeed on configuring it right.

As the following link I have added to my php.ini these lines.

Quote

zend_extension_ts="C:/wamp/bin/php/php5.2.6/ext/php_xdebug-2.0.2-5.2.5.dll"
xdebug.remote_enable=1

As the default installation path is this.

But when I click on debug netbeans fails to connect to xdebug and it says it's not properly installed or configured.

Any help is appreciated.

Thanks

Options: ReplyQuote
Re: Enabling XDebug with WAMP
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: October 27, 2008 12:44PM

i would never recommend using a huge IDE like Netbeans to debug such a simple language

but anyway after u add the line , ul need to get the dl and put it there
download for ur version of PHP from here>>[pecl4win.php.net]

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Enabling XDebug with WAMP
Posted by: radalin (195.174.20.---)
Date: October 27, 2008 12:57PM

I guess I found it. I had made a typo about dll's name. How dump I'm smiling smiley


I'm open for other IDE suggestions for debugging PHP as PDT and Netbeans are the only ones I know. Perhaps, PHPed and PHP Designer also support them too?

thanks

Options: ReplyQuote
Re: Enabling XDebug with WAMP
Posted by: msteudel (---.hsd1.wa.comcast.net)
Date: November 21, 2008 06:19PM

My experience has been that most IDE's that support debugging tend to be a bit heavy, some others that I've played ith:

Zend Studio (5,6, eclipse version)
Eclipse
Aptana
Komodo

Once you get these monolith's open I don't see any problems with it. A lot of these also work on Linux if that's a plus to anyone.

MS

Options: ReplyQuote
Re: Enabling XDebug with WAMP
Posted by: dcizal (195.189.207.---)
Date: March 17, 2010 11:45AM

Hi all

Just a little hint how to chose the right xdebug version for you:
Using phpinfo() check the following 2 things:
1. PHP Version (I have 5.3.0)
2. Zend Extension Build (for me it looks something like this: API220090626,TS,VC6)
This means that we should look for xdebug version that starts with

5.3 VC6

You download the version of xdebug and put it in :
C:/wamp/bin/php/php5.3.0/ext

Then edit the php.ini file and add the following lines:

[xdebug]
zend_extension="c:/wamp/bin/php/php5.3.0/ext/php_xdebug-THE_VERSION_YOU_DOWNLOADED.dll"
xdebug.profiler_output_dir = "c:/wamp/tmp/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%p"
xdebug.profiler_enable = 0
xdebug.profiler_append=0
xdebug.extended_info=1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=xdebug
xdebug.remote_log="c:/wamp/tmp/xdebug/xdebug_remot.log"
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
xdebug.trace_format=0

That should work...

Options: ReplyQuote
Re: Enabling XDebug with WAMP
Posted by: maxish (---.cpe.net.cable.rogers.com)
Date: May 10, 2010 03:49AM

dcizal,

I am using php 5.3.0 VC6.

Thanks for the tip on matching up the PHP version with the precise DLL version - that's what did it for me!

I just want to add that the extension commands must be added to the php.ini file in the apache folder (e.g "C:\wamp\bin\apache\Apache2.2.11\bin"winking smiley and not the to the php.ini in the PHP folder

Also remember to use "zend_extension" and not "zend_extension_ts"

Options: ReplyQuote
Re: Enabling XDebug with WAMP
Posted by: drtrueblue (199.79.112.---)
Date: July 19, 2010 04:21PM

I'm stumped and would greatly appreciate this group's expertise. I followed the xdebug wizard to the letter without success.

I installed php_xdebug-2.1.0-5.2-vc6.dll to the following location: c:\wamp\php\ext.

I added the following: zend_extension_ts = c:\wamp\php\ext\php_xdebug-2.1.0-5.2-vc6.dll to my php.ini file located at C:\wamp\Apache2\bin.

Yet xdebug simply isn't being listed in my active list of available php extensions and xdebug is not installed.


At the bottom is the direct output of the php_info().
System Windows NT MHIS235L 5.1 build 2600
Build Date Nov 8 2007 23:18:08
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\wamp\Apache2\bin\php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*

Options: ReplyQuote
Re: Enabling XDebug with WAMP
Posted by: JaneLHX (---.dynamic.isp.telekom.rs)
Date: March 10, 2012 03:20PM

Thank you dcizal, your explanation is the best one on the web. You just made my day!

Options: ReplyQuote


Sorry, only registered users may post in this forum.