I am following steps here to perform debugging on remote server:
https://www.jetbrains.com/help/phpstorm/remote-debugging-via-ssh-tunnel.html
Locally I am using MAC Sierra.
In PhpStorm I have PHP 7.0 as CLI, and it shows Xdebug is installed. In the php.ini I have
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
phpinfo also shows Xdebug is enabled.
Under Preferences->Languages->PHP->debug I have port 9000 set for Xdebug and Enable remote connections is checked. I also set Break at first line just to be sure.
I also have SSH tunnel up and running via this command from my MAC terminal:
ssh -R 9000:localhost:9000 [email protected]
which successfully established SSH connection.
I restarted Apache on my local computer, set breakpoint at index.php file of the remote site (though this amounts to setting breakpoint in local file, but my understanding that is how this works and I have path mapping set up), enabled listen to incoming debug connections, installed xdebug extension for chrome and enabled it, loaded the remote page in question, but PhpStorm does not break.
Now, based on the instructions, I didn't see that I have to do any setup on the remote server. My understanding is that if I type an address in the browser after doing required steps it will trigger break in PhpStorm.
I feel like I am missing something.
Ideas?