News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans' Blog:
Remote Debugging PHP with a Firewall in the Way
August 26, 2011 @ 11:24:17

Sometime debugging PHP applications isn't as easy as just pointing your IDE directly at the server and starting to work. Derick Rethans has a new post talking about one such situation, remote debugging with a firewall in between you and the remote machine with XDebug.

The PHP debugging extension Xdebug has "remote" debugging capabilities for single-step debugging PHP applications. This works by setting your favourite IDE into listening mode and instructing Xdebug (with one of the handy browser extensions for example) to initiate debugging. [...] There could however be a firewall in the way that prevents Xdebug connecting directly to your IDE's IP address. That can be because the network you are on employs NAT. [...] In this case, there is no way Xdebug can connect to your IDE's IP address and port. Or is there?

His alternative requires SSH access to the remote machine - building a tunnel from your local machine to the remote server XDebug can use to get around the firewall. He explains the shell command to set up the tunnel and, a more graphical way, through the Putty ssh/telnet client. A quick call to "netstat" can tell you if things are working correctly or not. All that's left then is to point your XDebug to the port on the localhost and you should be good to go on debugging.

0 comments voice your opinion now!
debugging firewall tutorial ssh tunnel xdebug ide


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Understanding the Zend Framework, Part 3: The feeds

MaltBlue.com: Hot to Use the Zend Form ViewScript Decorator in All Modules

DevShed: Finding Paths, Timestamps and More with the DirectoryIterator Class in PHP

Ian Selby's Blog: Working With the Aptana PHP Editor (Screencast)

The Shadow Fox Network: Building a Better Blog - Part 1 & 2


Community Events





Don't see your event here?
Let us know!


tips code community api release introduction zendserver bugfix interview podcast framework threedevsandamaybe series development laravel language symfony conference deployment list

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework