How can I debug a custom module in Drupal 7 using Xdebug and PHPUnit? That is, I would like to debug and perhaps write some unit tests to eliminate some basic potential problems.
This is a code I inherited that is misbehaving. I am relatively new to Drupal but have some PHP skills.
Any advice is appreciated.