Prof Patrick J Wasson, MS

Enable Debugging in Apache

  1. Go to: http://xdebug.org/files/php_xdebug-2.5.1-7.1-vc14.dll and download the .dll file
  2. Rename the file: php_xdebug.dll
  3. Copy the file to: C:\xampp\php\ext\
  4. Open the XAMPP Control Panel->Click the Apache Config button->Select php.ini file
  5. Add the following code to the bottom the file and save.
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_autostart=0
xdebug.remote_connect_back=0
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=0
xdebug.profiler_output_name=cachegrind.out.%s.%t
xdebug.profiler_output_dir="C:/Temp/xdebug"
xdebug.trace_output_dir="C:/Temp/xdebug"

6. Stop and Start the Apache service in the XAMPP control panel

Leave a Reply

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