- SSH to your machine like this:
ssh -R 9000:localhost:9000 your.remote.machine
- Ensure you have Xdebug installed and configured with
xdebug.remote_enable=1
- Add this snippet to your
.bash_profile
or similar shell init script:
# XDebug
function xdebug-start {
xdebug_site=$1
xdebug_host=$2
xdebug_port=$3