Monday, August 27, 2012

Configure Xdebug with phpDesigner


1. Create a file with the name info.php in htdocs folder

<?php
phpinfo();
?>

2. Check the version of PHP that you had installed / using .
















3. Go to http://xdebug.org/download.php 

4. Download the correct version of the xDebug extension dll
In this case, I had downloaded php_xdebug-2.2.1-5.4-vc9.dll





5.  Copy the downloaded file and paste it in the following folder
 D:\PHP\XAMPP\php\ext

6. Ope the file D:\PHP\XAMPP\php\php.ini

7. Find the word / text "[xDebug]"

8. Paste the following lines of code just below the above searched tag
zend_extension="./ext/php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.dump.*
xdebug.profiler_output_dir=D:\PHP\Program Files\XDebugCache

 9. Restart the apache server

10. Start debugging in phpDesigner


Happy debugging !

1 comment:

clod said...

Codelobster has great free internal PHP debugger.