Thursday, September 2, 2010

XDebug Loading - Windows, ZWAMP

This one's a quickie.

I'm currently developing some code in PHP 5.3 on my local Windows 7 64-bit box using ZWamp and Postgres. I was trying to get XDebug running and couldn't get it to load properly

Well, it's all about semantics.
  1. You have to load with "zend_extension". It will not load completely/correctly with "extension". You will get "XDEBUG NOT LOAD AS ZEND EXTENSION".
  2. zend_extension does not take into account "extension_dir". You must use the full path to XDebug.
  3. zend_extension does not give any warnings when the extension does not load using zend_extension... At least it doesn't crash the starting of Apache like an incorrect extension path.
  4. DO NOT USE "zend_extension_ts". This was deprecated as of PHP5.3.
So, how did I get it to work with ZWamp?

zend_extension = "/.sys/php/ext/php_xdebug-2.1.0-5.3-vc9.dll"

No comments: