[xdebug-general] Can't get SSH tunnel debug to work

From: Spencer Williams IV <enderandpeter[@]yahoo.com>
Date: Thu, 19 Nov 2015 12:14:07 -0700

Hey there. Thank you very much for helping me with past issues. This
time, I am using xdebug with ssh tunneling. In previous projects, I've
been able make such tunneling work and I'm having trouble discovering
the issue in this case.

First of all, I read that all that is really required to initiate SSH
tunneling is to connect to your remote machine via SSH with a command
like the following:

ssh user[@]remote-machine -R9000:

I understand the "remote-machine" to be the one you have your PHP site
on, which has xdebug installed, and your local machine is the "debug
client" where you are running an IDE (Eclipse in my case) on which you
want it to stop on breakpoints. I was not entirely sure if port 9000 was
in use before, so I'm having Eclipse listen for xdebug requests from the
remote-machine on port 9010 of my local machine.

And so, the remote-machine has the following in its xdebug.ini:

xdebug.remote_log=/var/log/php/xdebug.log is the IP of my local machine, the debug client as I understand
it. I've also been using the info on this site for guidance:

I confirmed my local machine is listening on port 9010 as well.

I set the remote_log so I could get more information, but nothing is
written to that file. I know that the httpd process owner, the apache
user in my case, needs to be able to write to it, but I went ahead and
let everyone write to it. The remote-machine has SELinux disabled, so I
know that is not the issue. Here are the permission from the root all
the way to that file:

dr-xr-xr-x. 22 root root 4.0K Nov 18 14:22 /
drwxr-xr-x. 24 root root 4.0K Nov 6 16:01 /var
drwxr-xr-x. 13 root root 4.0K Nov 19 11:20 /var/log
drwxr-xr-x 2 root root 4.0K Nov 19 11:20 /var/log/php
-rw-r--rw- 1 root root 0 Nov 19 11:20 /var/log/php/xdebug.log

xdebug.log never has anything written to it. I am quite sure Eclipse is
properly setup to debug with xdebug remotely on this server. I am
following these instructions rather accurately:

My local OS is OS X and the remote is a Red Hat flavor of Linux.

Why on God's green earth does this setup not result in anything written
to the xdebug log, nor any communication between the remote and local
server via xdebug, as far as I can tell?
Received on Thu Nov 19 2015 - 19:20:55 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST