Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » XDebug - limited to localhost?
XDebug - limited to localhost? [message #66718] Mon, 25 February 2008 06:22 Go to next message
Eclipse UserFriend
Originally posted by: anderson.2wav.com

I am trying to debug a remote server using XDebug, attempting to follow
the many threads and blog postings on the subject. I can't seem to find
a clear and current answer about which tools I should be using, and
what functionality I should expect. Any help would be _greatly_
appreciated.

Server:
OS-X 10.4 Server, apache 2.2.8, PHP 5.2.5, XDebug 2.something (all
built from source).

Client:
Eclipse 3.3.~ (3 machines) OS-X 10.4, 10.5, and XP.
PDT 1.02,
the Zend debugger updates, (which I'm unclear if that's any different
than the standard PDT)
Also, I installed the XDebug Support plugins (most recent) from
bugs.eclipse.org # 169408

I believe that XDebug is running fine on the server.

In Eclipse running on the server machine, I can can connect and debug
just fine using the "PHP Web Page" plugin UI. I note from tcpdump and
netstat that eclipse connects to the server on localhost:9000, despite
a full hostname provided in the debug configuration.

In Eclipse running any elsewhere (10.5 and XP), the plugin does not
connect. I can see no evidence of the client attempting to connect to
the server in tcpdump or netstat.

In any of the clients, if I try to use the "PHP Web Script with XDebug"
plugin UI, I get an error in
org.eclipse.php.internal.core.util.FileUtils.fileExists(), as soon as I
try to create a new configuration.

I'm guessing that the XDebug Support plugin from bugzilla is perhaps
now deprecated and does not work in Eclipse 3.3. Is that correct?

Should I be able to debug a remote XDebug server (ie. one not at
127.0.0.1) with the standard PDT debug feature?


many TIA...

Andy
Re: XDebug - limited to localhost? [message #66738 is a reply to message #66718] Mon, 25 February 2008 09:24 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
For xdebug support you only need PDT 1.0.2 for the IDE part, the code from #169408 is not required
any more.
Your server setup sounds ok. You should be able to remotely debug, by placing the correct xdebug
config values in php.ini

For more info on xdebug setup on your server, visit http://www.xdebug.org

Dave Kelsey

Anderson Wiese wrote:
> I am trying to debug a remote server using XDebug, attempting to follow
> the many threads and blog postings on the subject. I can't seem to find
> a clear and current answer about which tools I should be using, and what
> functionality I should expect. Any help would be _greatly_ appreciated.
>
> Server:
> OS-X 10.4 Server, apache 2.2.8, PHP 5.2.5, XDebug 2.something (all
> built from source).
>
> Client:
> Eclipse 3.3.~ (3 machines) OS-X 10.4, 10.5, and XP.
> PDT 1.02,
> the Zend debugger updates, (which I'm unclear if that's any
> different than the standard PDT)
> Also, I installed the XDebug Support plugins (most recent) from
> bugs.eclipse.org # 169408
>
> I believe that XDebug is running fine on the server.
>
> In Eclipse running on the server machine, I can can connect and debug
> just fine using the "PHP Web Page" plugin UI. I note from tcpdump and
> netstat that eclipse connects to the server on localhost:9000, despite a
> full hostname provided in the debug configuration.
>
> In Eclipse running any elsewhere (10.5 and XP), the plugin does not
> connect. I can see no evidence of the client attempting to connect to
> the server in tcpdump or netstat.
>
> In any of the clients, if I try to use the "PHP Web Script with XDebug"
> plugin UI, I get an error in
> org.eclipse.php.internal.core.util.FileUtils.fileExists(), as soon as I
> try to create a new configuration.
>
> I'm guessing that the XDebug Support plugin from bugzilla is perhaps now
> deprecated and does not work in Eclipse 3.3. Is that correct?
>
> Should I be able to debug a remote XDebug server (ie. one not at
> 127.0.0.1) with the standard PDT debug feature?
>
>
> many TIA...
>
> Andy
>
>
Re: XDebug - limited to localhost? [message #66756 is a reply to message #66738] Mon, 25 February 2008 16:35 Go to previous message
Eclipse UserFriend
Originally posted by: anderson.2wav.com

THANKYOU. A little encouragement was all I needed, and the good advice
to RTFM instead of blindly following blog posts.

It was not clear to me (from the blog posts) that the XDebug server
initiates the connection to the client, not the other way around, as
with jdpa. Now it works beautifully.

On 2008-02-25 03:24:27 -0600, Dave Kelsey <dkel50@hotmail.com> said:

For xdebug support you only need PDT 1.0.2 for the IDE part, the code
from #169408 is not required any more.
> Your server setup sounds ok. You should be able to remotely debug, by
> placing the correct xdebug config values in php.ini
>
> For more info on xdebug setup on your server, visit http://www.xdebug.org
>
> Dave Kelsey
>
> Anderson Wiese wrote:
> I am trying to debug a remote server using XDebug, attempting to follow
> the many threads and blog postings on the subject. I can't seem to find
> a clear and current answer about which tools I should be using, and
> what functionality I should expect. Any help would be _greatly_
> appreciated.
>>
>> Server:
>> OS-X 10.4 Server, apache 2.2.8, PHP 5.2.5, XDebug 2.something (all
>> built from source).
>>
>> Client:
>> Eclipse 3.3.~ (3 machines) OS-X 10.4, 10.5, and XP.
>> PDT 1.02,
>> the Zend debugger updates, (which I'm unclear if that's any
>> different than the standard PDT)
>> Also, I installed the XDebug Support plugins (most recent) from
>> bugs.eclipse.org # 169408
>>
>> I believe that XDebug is running fine on the server.
>>
>> In Eclipse running on the server machine, I can can connect and debug
>> just fine using the "PHP Web Page" plugin UI. I note from tcpdump and
>> netstat that eclipse connects to the server on localhost:9000, despite
>> a full hostname provided in the debug configuration.
>>
>> In Eclipse running any elsewhere (10.5 and XP), the plugin does not
>> connect. I can see no evidence of the client attempting to connect to
>> the server in tcpdump or netstat.
>>
>> In any of the clients, if I try to use the "PHP Web Script with XDebug"
>> plugin UI, I get an error in
>> org.eclipse.php.internal.core.util.FileUtils.fileExists(), as soon as I
>> try to create a new configuration.
>>
>> I'm guessing that the XDebug Support plugin from bugzilla is perhaps
>> now deprecated and does not work in Eclipse 3.3. Is that correct?
>>
>> Should I be able to debug a remote XDebug server (ie. one not at
>> 127.0.0.1) with the standard PDT debug feature?
>>
>>
>> many TIA...
>>
>> Andy
>>
Previous Topic:Discuss next PDT 1.1 features and architecture
Next Topic:debug entire site
Goto Forum:
  


Current Time: Mon Jan 30 12:25:11 GMT 2023

Powered by FUDForum. Page generated in 0.49094 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top