I am assuming that you already followed the tutorials on setting up xDebug on PHP installation and PhpStorm. Let me know if you need some help with that.
I am using xDebug Helper extension on Chrome. Install it too.
With the extension installed:
- In PhpStorm, go to
Run
>Start Listening for PHP Debug Connections
. - Set a breakpoint in your code.
-
Go to Chrome and Select
Debug
in the small insect. -
Refresh your page.
-
Back in PhpStorm, accept the incoming connection.
-
Enjoy debugging your code.