Important: Make sure you restart your MAMP server after editing your php.ini file, otherwise your settings wont apply.
Learn how to setup remote xDebug with PhpStorm and MAMP on a Mac. The key to this setup is the remote connection which allows you to setup a break point in your code and trigger the debugging from your browser.