PhpStorm has an excellent debugger for developing Drupal modules or even Drupal themes. After numerous IDE and text editors, it has earned it's place to be my primary IDE for almost anything Drupal, for many good reasons. PhpStorm, by default, is as Drupal friendly as many other PHP IDEs. That means it gets the job done, but there might be some syntax in your code the Drupal Coding Standards and it's authors wouldn't be too happy about. Here are a few things to make PhpStorm play well with Drupal.
Althought not related to Drupal, the Keymap is the first thing we will change. PhpStorm by default comes with very unaturally keyboard shortcuts for me. Under Preferences, scroll down to select Keymap on the left. Select the keymap that suits your needs. Mac OS X 10.5+ feels the most intuitive to me. You may also further customize the keyboard shortcuts to each of the actions.
![Keymap](https://www.evernote.com/shard/s25/sh/6d5914ad-51f0-4d