Installing Xdebug for XAMPP with PHP 7.0

Setup

  1. Download Xdebug for PHP 7: http://xdebug.org/files/php_xdebug-2.4.0rc3-7.0-vc14.dll
  2. Copy file php_xdebug-2.4.0rc3-7.0-vc14.dll to: C:\xampp\php\ext
  3. Open file with notepad++: C:\xampp\php\php.ini
  4. Disbale output buffering: output_buffering = Off
  5. Scroll down to [XDebug] section and copy this lines:
  6. [XDebug]
    zend_extension = "c:\xampp\php\ext\php_xdebug-2.4.0rc3-7.0-vc14.dll"
    xdebug.profiler_append = 0
    xdebug.profiler_enable = 0
    xdebug.profiler_enable_trigger = 0
    xdebug.profiler_output_dir = "c:\xampp\tmp"
    ; xdebug.profiler_output_name = "cachegrind.out.%t-%s"
    xdebug.remote_enable = 1
    xdebug.remote_handler = "dbgp"
    xdebug.remote_host = "127.0.0.1"
    xdebug.remote_log="c:\xampp\tmp\xdebug.txt"
    xdebug.remote_port = 9000
    xdebug.trace_output_dir = "c:\xampp\tmp"
    ; 3600 (1 hour), 36000 = 10h
    xdebug.remote_cookie_expire_time = 36000
  7. Stop/Start Apache
  8. run http://localhost/dashboard/phpinfo.php and check.

Reference: https://www.youtube.com/watch?v=WWNlcZtqEQ4

Watch the video here