Skip to content

Instantly share code, notes, and snippets.

@fatkulnurk
Forked from odan/xampp_php7_xdebug.md
Created October 17, 2019 14:45
Show Gist options
  • Save fatkulnurk/002df50ff2abac449ac36827b608db04 to your computer and use it in GitHub Desktop.
Save fatkulnurk/002df50ff2abac449ac36827b608db04 to your computer and use it in GitHub Desktop.
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup

Notice: You can also use the built-in Xdebug by using zend_extension = "C:\xampp\php\ext\php_xdebug.dll".

  • Move the downloaded dll file to: C:\xampp\php\ext

  • Open the file C:\xampp\php\php.ini with Notepad++

  • Disable output buffering: output_buffering = Off

  • Scroll down to the [XDebug] section (or create it) and copy/paste these lines:

[XDebug]
;zend_extension = "c:\xampp\php\ext\php_xdebug.dll"
zend_extension = "c:\xampp\php\ext\php_xdebug-2.7.2-7.3-vc15-x86_64.dll"
xdebug.remote_autostart = 1
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"
;36000 = 10h
xdebug.remote_cookie_expire_time = 36000
  • Restart Apache

  • Click the Github ★ Star button :-)

PhpStorm

Netbeans

Eclipse

  • No comment

Visual Studio Code

Adobe Brackets

Sublime Text 2 and 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment