- XAMPP for Windows: https://www.apachefriends.org/download.html
- The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed
- The VC15 builds require to have the Visual C++ Redistributable for Visual Studio 2017 x64 or x86 installed
-
Download Xdebug for:
-
Copy the dll file
php_xdebug-2.7.2-7.3-vc15.dll
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 this lines:
[XDebug]
zend_extension = "c:\xampp\php\ext\php_xdebug-2.7.1-7.3-vc15.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
-
Stop/Start Apache
-
Click the Github ★ Star button :-)
- Use the PhpStorm bookmarklets generator to activate Xdebug from the browser side.
- Change the Netbeans debugging options: https://user-images.githubusercontent.com/781074/39868196-c98f15a0-5458-11e8-8143-d8c44079e099.jpg
- No comment
- Install the PHP Debugger for Brackets.
- Install the Xdebug Client Package