Step8: Get the debugger talking to PhpStorm
Next we want to add some more settings to the php.ini file on the server to let it know where our development machine is. For this you need the ip address of the machine running PhpStorm.
On a PC -
Click the Start button, select Run
Type CMD and press Enter.
A Command prompt window will open.
Type ipconfig and press Enter.
Several lines of information will be displayed, one of which will be the PC's IP address.
On a Mac -
From the Apple menu pull down "System Preferences".
Click on the "Network" preference pane.
The Mac's IP address will be visible to the right.
On linux, type
ifconfig
at the command line to get your IP address.
Once you have that, copy this block of code but use your IP address
[xdebug]
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=192.168.0.2
xdebug.idekey=webide
we want to put that block of code directly below the zend_extension= line that we added before in php.ini on the server.