|How to debug with Eclipse PDT and Xdebug when source files are on remote server [message #890649]
||Fri, 22 June 2012 14:58
| Shishir Garg
Registered: June 2012
I have tried a lot but not been able to understand the steps involved in debugging a PHP website residing on a remote server with eclipse Indigo PDT and Xdebug. Following is my configuration.
LAMP, Eclipse PDT with RSE,
My main problem is about the setup that I need to do locally to be able to debug the remote website.
1. Do I need to create a new eclipse project locally? If yes, where should I load the source files from and how? Do I need an exact copy of the source files as on the server?
2. Do I need to have all the files locally before I can start debugging? I copied only index.php to a local project and started debugging. I received the remote connection when I started debugging the website and could step through index.php, but not after that. If I don't need to have all the source files locally beforehand, how can I set a break point in a file that is reached after 20 function calls?
3. What other settings need to be setup to link the local and remote projects. Do I need to add a new PHP server? What should be the settings of the debug configuration?
I know about sshfs and tried to set it up using this link:
but eclipse took forever to build project files on the server and hung.
Powered by FUDForum
. Page generated in 0.01507 seconds