Environment
apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi
php-5.1.2-Win32.zip
php_xdebug-2.0.3-5.1.7.dll
php-5.2.6-Win32.zip
php_xdebug-2.0.3-5.2.5.dll
Mysql 5.0.51a-community-nt
Eclipse 3.3.2
httpd.conf
SetEnv PHPRC "D:/dev/php-5.1.2-Win32"
ScriptAlias /php/ "D:/dev/php-5.1.2-Win32/"
Action application/x-httpd-php "/php/php-cgi.exe"
php.ini
Put the extension into the dir
; Directory in which the loadable extensions (modules) reside.
extension_dir = "./ext/"
[Xdebug]
zend_extension_ts="D:/dev/php-5.1.2-Win32/ext/php_xdebug-2.0.3-5.1.7.dll"
xdebug.profiler_enable=on
xdebug.trace_output_dir="D:/dev/log"
xdebug.profiler_output_dir="D:/dev/log"
Enable other extensions, Restart , see phpinfo();
Display Features & Stack Traces
Add following code into ACLController.php
var_dump($_SERVER);
require_once('kkk.php');
See the results
Add this setting to httpd.conf:
xdebug.collect_params=2
Restart, See the results
Function stack & Function Traces
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.remote_host="localhost"
xdebug.remote_port=9000
eclipse
Windows → Preference → PHP → Debug → PHP Debugger: Xdebug
Setting one PHP Web Page debug
apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi
php-5.1.2-Win32.zip
php_xdebug-2.0.3-5.1.7.dll
php-5.2.6-Win32.zip
php_xdebug-2.0.3-5.2.5.dll
Mysql 5.0.51a-community-nt
Eclipse 3.3.2
httpd.conf
SetEnv PHPRC "D:/dev/php-5.1.2-Win32"
ScriptAlias /php/ "D:/dev/php-5.1.2-Win32/"
Action application/x-httpd-php "/php/php-cgi.exe"
php.ini
Put the extension into the dir
; Directory in which the loadable extensions (modules) reside.
extension_dir = "./ext/"
[Xdebug]
zend_extension_ts="D:/dev/php-5.1.2-Win32/ext/php_xdebug-2.0.3-5.1.7.dll"
xdebug.profiler_enable=on
xdebug.trace_output_dir="D:/dev/log"
xdebug.profiler_output_dir="D:/dev/log"
Enable other extensions, Restart , see phpinfo();
Display Features & Stack Traces
Add following code into ACLController.php
var_dump($_SERVER);
require_once('kkk.php');
See the results
Add this setting to httpd.conf:
xdebug.collect_params=2
Restart, See the results
Function stack & Function Traces
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.remote_host="localhost"
xdebug.remote_port=9000
eclipse
Windows → Preference → PHP → Debug → PHP Debugger: Xdebug
Setting one PHP Web Page debug