Debugger :  XDebug activition

SUMMARY:  XDebug instructions in the xdebug.txt file packaged with XAMPP reads as follows:

1: Activate XDEBUG in apache\bin\php.ini
2: Comment out ZEND (only one zend_extension_ts is going)
3: Start PHP Scripts with session param ?XDEBUG_SESSION_START=<name>
e.g.: http://localhost/xampp/phpinfo.php?XDEBUG_SESSION_START=mydebug
4: Start xampp\php\debugclient-x.y.z.exe     ( x.y.z being the appropriate version shipped with your XAMPP install )

More Detailed

You should have already saved the Xdebug extension DLL file to your PHP extension folder.  Record down the full path of it. Now, open up your php.ini file and go down to the [XDebug] section, or create it if it’s not there. Uncomment or add the following lines:

;; Only Zend OR (!) XDebug
zend_extension_ts="D:\XAMPP\php\ext\php_xdebug.dll"
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

 

The zend_extension_ts should point to location of your Xdebug extension DLL that you downloaded earlier; modify as appropriate. Then, you should disable the Xdebug entry in the list of dynamic extensions. This is confusing, but since we are already setting up Xdebug as a Zend extension, we don’t need another entry. Disable the Xdebug dynamic extension by ensuring the following line is commented out, like below:

;extension=php_xdebug.dll

There is one last very important step you need to do, particularly if you are running XAMPP. Current versions of Xdebug are incompatible with the Zend optimizer that is enabled by default in XAMPP, so you must disable that if you want Xdebug to work. If you don’t, you’ll notice that Apache will crash every time you try to load it with Xdebug enabled. To disable the Zend optimizer, find the [Zend] section in php.ini and comment out all of the entries under it, like so: (This is an example, there may be more to comment out)

[Zend]
;zend_extension_ts = "D:\XAMPP\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "D:\XAMPP\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0
;zend_optimizer.optimization_level=15
;zend_optimizer.license_path =

Restart apache because you have modified php.ini.  Then use the XAMPP phpinfo() page url ( mine is http://localhost/xampp/phpinfo.php ) to verify XDebug is working.  You should see:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick Rethans

 

Debugger Usage – Settings – Running

Email related – delayed till later

  • Run the install.php – mine flagged an error that it could not send an email.  Otherwise it all installed
  • Email fixes: -1- use gmail as your smtp server

 

Clean URL support in XAMPP

For reference

1 Comment

Darek Dawicki MonsterID Icon Darek Dawicki · July 11, 2009 at 1:23 pm

Czy to je po polskiemu????

Leave a Reply

Your email address will not be published. Required fields are marked *