|
|
Re: Remote Debugging [message #643105 is a reply to message #643036] |
Sat, 04 December 2010 13:23 |
Missing name Mising name Messages: 11 Registered: December 2010 Location: Torrance, CA |
Junior Member |
|
|
In section 2.2 of this PDF, which starts on page 3, there is the entry:
xdebug.remote_host=<hostname> which is to be "the name of the host where your IDE will be running"
Then in the next figure in gives as an example:
xdebug.remote_host="localhost"
My understanding is that IDE = Integrated Development Environment which in my case is Eclipse. This Eclipse is running on my local machine and not my server. So if my understanding is correct this would rule out "localhost" because that would be the remote server. What then would go here? The IP address of my local machine? My local machine does not have a direct connection to the internet. It connects through a router in the house where I live. Would my local machine's name have to be used as a subdomain of the router's IP address on the ISP's network?
[Updated on: Sat, 04 December 2010 13:24] Report message to a moderator
|
|
|
|
|
|
Re: Remote Debugging [message #671790 is a reply to message #643791] |
Thu, 19 May 2011 02:02 |
David Coll Messages: 1 Registered: May 2011 |
Junior Member |
|
|
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: Thu, 19 May 2011 02:05] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.30825 seconds