Debug remote server through ssh tunnel

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Debug remote server through ssh tunnel

Postby kkoba » August 6th, 2013, 3:38 pm

I use PHP Tools for Visual Studio 2010 PERSONAL LICENSE 1.8.4452.

I want to debug php script in remote server that placed on vps.
When I use Eclipse, I make ssh tunnel and it goes well.
But when I use PHP Tools for VS, it doesn't works.
Is there any advice to do it?
kkoba
 
Posts: 25
Joined: June 22nd, 2013, 11:13 am

Re: Debug remote server through ssh tunnel

Postby Miloslav Beno » August 7th, 2013, 2:42 pm

Hi,

Thank you for question. I personally haven't used ssh tunel for remote debugging, but maybe this article will help? http://derickrethans.nl/debugging-with-xdebug-and-firewalls.html

Is there some option in Eclipse for this PHP Tools are missing?

Thanks again,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Debug remote server through ssh tunnel

Postby kkoba » August 8th, 2013, 2:38 pm

Thanks for replying,

I has made ssh tunnel by "ssh -R 9000:localhost:9000 user@server" as the page you suggested.
I has confirmed ssh tunnel is valid by Eclipse debugger.
But when PHP Tools for VS, its debugger doesn't be invoked.
Is there a way to analyze it? (For example, PHP Tools debugger connection log)
Do PHP Tools debugger accept a connection from ssh tunnel?
kkoba
 
Posts: 25
Joined: June 22nd, 2013, 11:13 am

Re: Debug remote server through ssh tunnel

Postby Miloslav Beno » August 10th, 2013, 3:46 pm

Hi,

I've tried to set ssh tunnel myself using putty to test it out and there is actually a small bug preventing PHP Tools to debug in this setup.

I'm working on a fix so I'll just give you fixed version as soon as we have it. ETA 1 day.

Thanks for understanding and reporting this
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Debug remote server through ssh tunnel

Postby Miloslav Beno » August 10th, 2013, 4:28 pm

Here is the fixed version.

Give me know if you are able to establish connection through ssh tunnel now.

Thanks,
You do not have the required permissions to view the files attached to this post.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Debug remote server through ssh tunnel

Postby kkoba » August 10th, 2013, 5:03 pm

Thanks a lot!
I got your newer vsix package and installed it.
Then remote xdebug through ssh tunnel works well.
I can do setting break-point, processing by step-in, watching variables and so on.
It's great!
kkoba
 
Posts: 25
Joined: June 22nd, 2013, 11:13 am

Re: Debug remote server through ssh tunnel

Postby Miloslav Beno » August 10th, 2013, 5:05 pm

Great! I'm glad it works, the fix will be included into next official update.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 61 guests

cron

User Control Panel

Login

Who is online

In total there are 61 users online :: 0 registered, 0 hidden and 61 guests (based on users active over the past 5 minutes)
Most users ever online was 297 on March 29th, 2024, 7:06 am

Users browsing this forum: No registered users and 61 guests