XDebug, NetBeans, WAMP Apache Crash Solution


I just upgraded to a Vista 64 laptop with the current version of WAMP(2.0), and here is what I put in my php.ini to use XDebug and make the Apache crashing stop. Basically, I went back to using the 2.0.0 version of XDebug, and things seem to have stopped crashing.

I am using NetBeans as my debugging IDE, and so far it works just fine.

First off, comment out in your active php.ini:
;extension=php_xdebug-2.0.0-5.2.2.dll

Then add this to the bottom of your active php.ini (Adjust your directories and xdebug filename accordingly.)

[XDebug]
; Only Zend OR (!) XDebug
zend_extension_ts="C:/Program Files (x86)/wamp/bin/php/php5.2.9-2/ext/php_xdebug-2.0.0-5.2.2.dll"
xdebug.remote_enable=on
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir="C:/Program Files (x86)/wamp/tmp"

That’s it! Good luck and hope this helps someone!

, ,

  1. #1 by Shaun on July 29, 2009 - 4:07 am

    Dude I fucking love you, this has been seriously pissin me off recently. Apache just keeps crashing and i don’t know why. If you ever manage to find a solution to the newer releases of xdebug please drop me a line.

    Thanks a million!!!

  2. #2 by Adrian on August 18, 2009 - 8:20 pm

    Thank you for saving us sooooo much frustration.

  3. #3 by Pierre Boucher on September 7, 2009 - 8:25 pm

    Thanks a lot. You just ended a few hours of frustration trying to make NetBeans runs with XDebug, PHP with WAMP.

(will not be published)