Bug 419874 - Unable to debug remotely using ssh tunnel
Summary: Unable to debug remotely using ssh tunnel
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-18 12:36 EDT by Dylan Volz CLA
Modified: 2020-05-14 10:17 EDT (History)
0 users

See Also:


Attachments
screenshot (326.92 KB, image/png)
2013-10-18 12:36 EDT, Dylan Volz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dylan Volz CLA 2013-10-18 12:36:35 EDT
Created attachment 236667 [details]
screenshot

I am developing on a linode server I have ssh access to, and wish to debug remotely from my laptop, which changes IP often. 
I configured xdebug on the server to debug over port 9000 to the localhost, and have tried two methods of port forwarding:

method one:
Use the eclipse PDT debug through ssh tunnel option:
I defined the server properly and put in my credentials. When I pressed test connection it connected successfully.
But when I tried to run a debugging session it stopped at 57% with the message: "waiting for XDebug session"
The webpage opened successfully after a long hang in firefox (I have eclipse set to run firefox). But no debugging session ran.

Method two:
I also tried setting up my own ssh tunnel:
I executed: ssh -R 9000:localhost:9000 myusername@myserver.com
on my laptop to setup a ssh tunnel to the linode server. I left the xdebug settings pointing at localhost, since it should be being forwarded through the ssh tunnel.

With this method I tried two ways of starting a debug session.

I tried launching a debug session from eclipse, (with the debug through ssh tunnel off)
and I tried using xdebug helper for chrome (with the ide tag set to ECLIPSE_DBGP)
Both of these methods result in the webpage hanging. (with the eclipse started session stopping at 57% again.)

Here is my netstat info when attempting a debug session:
sudo netstat -anp -t tcp | grep 9000
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      10847/sshd: dylan
tcp        0      1 50.116.11.230:43814     98.210.101.96:9000      SYN_SENT    10520/apache2   
tcp        0      1 50.116.11.230:43816     98.210.101.96:9000      SYN_SENT    10209/apache2   
tcp        0      1 50.116.11.230:43815     98.210.101.96:9000      SYN_SENT    10519/apache2   
tcp6       0      0 ::1:9000                :::*                    LISTEN      10847/sshd: dylan

It appears eclipse isnt responding perhaps?

Any help with this issue would be greatly appreciated,my xdebug settings from php -i and I am attaching a screenshot my eclipse PDT debug settings.