Setting Up Xdebug in XAMPP with PhpStorm

Xdebug is a PHP extension which provides debugging, profiling, code coverage, stack traces and many other capabilities.

In this succinct tutorial, I will show us how to set up Xdebug that ships with XAMPP in PhpStorm. See the steps below.

  • Open up php.ini (located at C:\path-to-xampp\php) for editing.
  • Search for [XDebug] and un-comment all its entries.
  • You will need to restart Apache at this point.
  • On PhpStorm, open the Settings by choosing File > Settings or ctrl + alt + S, then click the PHP menu.
  • On the PHP page, choose your PHP installation from the Interpreter drop-down list and click the Browse button PhpStorm browse button next to the field.
  • The Interpreters dialog box would open and shows the version of the selected PHP installation and Xdebug & its version. If Debugger: Not installed is shown instead, click the reload icon close to PHP home input field.

    PhpStorm Xdebug installation

  • Hit the Apply and Ok buttons and you should be good to go.
  1. Configuring Xdebug – PhpStorm Help
  2. Debugging and Profiling PHP with Xdebug
Don't miss my updates.
Subscribe to Receive Programming, Web development, Git and WordPress Tutorials & all things tech.