Remote Debugging [message #642965] |
Fri, 03 December 2010 09:27  |
Eclipse User |
|
|
|
I seek help setting up Helios for remote PHP debugging.
The local machine OS is Windows XP.
The remote machine OS is Debian Lenny with a Lighttpd 1.2.28 server. The phpinfo() function shows XDebug is installed.
On Helios I have SSH set up. The connection test passes.
My debug configuration will get to the website I want to do debugging on. Its front page appears on the internal browser when I run debug. But I cannot set breakpoints. There does not seem to be a way to browse the remote files and set breakpoints in them.
In the PHP perspective I see a mirror of the site that exists on my local machine in the PHP Explorer. Setting breakpoints in it does not work.
I need to know how to setup browsing for the remote files and breakpoints setting in them.
|
|
|
|
|
|
|
|
Re: Remote Debugging [message #671790 is a reply to message #643791] |
Wed, 18 May 2011 22:02  |
Eclipse User |
|
|
|
I don't know if this issue is closed or not. But here is my experience concerning Stephen query. DON'T use xdebug.remote_connect_back = 1 unless you know exactly how this works. It's not meant to be used in a home cheap switch box.
DO use xdebug.remote_host and xdebug.remote_port correctly using your INTERNAL ip adress. Thus, you should have an intern ip for your server and your workstation. Specify your remote_host to be the workstation (IDE) lan ip.
remote_port should be the same as specified in Eclipse remote debugging port.
--
But then, and here's what got me here, having a remote file system (files not on same computer than IDE), breakpoints won't work correctly.
Break on first line is good.
If I do a (F5) "Step into" code, for aaaall my code, the IDE seems to be able to map where are the breakpoints. But, It won't find them "as one would usually expect it" if I do a simple "Resume" (F8). On a serious framework, the "Step into" solution is long and will crash Eclipse 9 times out of 10.
I was wondering if there was a better solution to "map" the files along with the moment they are used in the script.. ?
[Updated on: Wed, 18 May 2011 22:05] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04443 seconds