Configuring and using Xdebug locally in PhpStorm
Pedro Sanchez wrote a good guide on how to get started with Xdebug in PhpStorm.
We assume that you use PHPStorm on a daily basis, and this guide will help to debug your code locally using the IDE. A remote debugging guide will come in the future.
http://tech.mybuilder.com/phpstorm-configuring-and-using-xdebug/