Just a quickie for people having trouble trying to get Xdebug to work inside PhpStorm using Mamp / Mamp Pro.
This took me a few days to twig. Your Mamp port is set to :8888 and Xdebug is set to :9000.
Set Xdbug to the same port as Mamp (8888) and problem solved.