NuSphere Corporation
BUY ONLINE
Support Services
Overview
KB
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
Technical FAQ
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla Development
Learn PHP
<Run debug sessionInstall debugger module>
Last updated: Mon, 05 May 2008

HOWTO: Run debug session through SSH

If you debug your scripts on a public server, you may want to do it in a secure way. In this case, have SSH daemon running on your server.
Then:
1. Start PhpED - PHP IDE. Make sure that Tools->Settings->IDE->Run&Debug has
  • use custom port and host box checked
  • localhost written for Debugger host
2. open php.ini on the server and make sure that debugger.hosts_allow contains localhost alone:
debugger.hosts_allow=localhost
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

3. run ssh on your client computer and connect it to the server using the command below:
ssh -R 7869:localhost:7869 username@serverhost

where username is your user account on the server and serverhost is hostname or server IP address.

NOTE: you'd have ssh client running with the command above each time you want to debug through SSH.
NOTE: you may want to enable compression by adding -C argument to ssh.

NOTE: If you need an ssh client and/or server (daemon) for Windows please take a look here: http://cygwin.com



<Run debug sessionInstall debugger module>
Last updated: Mon, 05 May 2008