


Now add a breakpoint in your code which you want to debug. This will stop at every request even if you don’t set a breakpoint. It’s also a good idea to activate “Break at first line of PHP scripts”. We can now open our PhpStorm project and enable the debugging mode in “Run”, “Start Listening for PHP Debug Connections”. For this we can use Xdebug helper from the Chrome Web Store. Now we need a browser extension to enable the debug mode. Zend_extension = "C:\xampp\php\ext\php_xdebug.dll" We now need to replace this section with the following code: xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.profiler_output_dir = "C:\xampp\tmp" zend_extension = "C:\xampp\php\ext\php_xdebug.dll" For this we need to open our php.ini file (C:\xampp\php\php.ini)Īt the bottom of the file you should see the following commented section for the configuration of Xdebug. First let’s configure the our Php installation. Now that we’ve installed the Xdebug extension we need to configure it to work with our Php and Phpstorm installation. If you’re using a newer XAMPP version you should already have this file installed under C:\xampp\php\ext\php_xdebug.dll.

You have to choose the right version for your installed php version. To start we need to download the latest Xdebug version from. With xdebug you can set breakpoints in your code, see all defined variable and even change them while running the code.
