Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » xdebug problems
xdebug problems [message #629544] Tue, 28 September 2010 16:08 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: September 2010
Junior Member
Hi, i've recently upgraded to PDT 2.2.0 ( helios win32 version) and have not been able to get xdebug working. I had previously been using xdebug with PDT 2.1.

I've done a complete reinstall of PDT 2.2.0 and created a new workspace. I've upated xdebug to the latest version of 2.1.0.

I'm trying to use xdebug with a remote server.

In the xdebug log I get a message such as this:

Log opened at 2010-09-28 15:09:23
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///test/debug.php" language="PHP" protocol_version="1.0" appid="5259"><engine version="2.1.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2010 by Derick Rethans]]></copyright></init>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

Log closed at 2010-09-28 15:09:23


I don't really know what is causing xdebug to stop. Does anyone have any suggestions. I've tried changing the port several times in case there is a conflict but it doesn't seem to make any difference.

Thanks,

Max
Re: xdebug problems [message #629550 is a reply to message #629544] Tue, 28 September 2010 16:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotremovemail.com

So from that log, all I can tell is that xdebug established a socket
with something. It sent the initial handshake. If PDT was communicating
with xdebug it would be sending commands to configure the debug env but
the log doesn't show this.

One possibility (if in fact it is communicating with PDT) is that PDT is
rejecting the socket. Have you got remote session initiation turned on
and you are trying to debug that way or are you creating a Web script
launch ?

Check you have xdebug installed in the correct manner for the version
and type of php you are using (check http://www.xdebug.org) for more info.

Dave

On 28/09/2010 17:08, mjd@telensa.com wrote:
> Hi, i've recently upgraded to PDT 2.2.0 ( helios win32 version) and have
> not been able to get xdebug working. I had previously been using xdebug
> with PDT 2.1.
>
> I've done a complete reinstall of PDT 2.2.0 and created a new workspace.
> I've upated xdebug to the latest version of 2.1.0.
>
> I'm trying to use xdebug with a remote server.
>
> In the xdebug log I get a message such as this:
>
>
> Log opened at 2010-09-28 15:09:23
> -> <init xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
> fileuri="file:///test/debug.php" language="PHP" protocol_version="1.0"
> appid="5259"><engine
> version="2.1.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
> Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
> (c) 2002-2010 by Derick Rethans]]></copyright></init>
>
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping"
> reason="ok"></response>
>
> Log closed at 2010-09-28 15:09:23
>
>
> I don't really know what is causing xdebug to stop. Does anyone have any
> suggestions. I've tried changing the port several times in case there is
> a conflict but it doesn't seem to make any difference.
>
> Thanks,
>
> Max
>
Re: xdebug problems [message #629825 is a reply to message #629550] Wed, 29 September 2010 16:36 Go to previous message
No real name is currently offline No real nameFriend
Messages: 4
Registered: September 2010
Junior Member
Hi Dave, I couldn't tell much from that log either!

I was initiating a remote debug request from Firefox using the XDebug extension. The log at least told me that it had got the right file to debug, although the reason for stopping doesn't give much away.

Your prompt made me check my PDT options again, and sure enough I had "Accept remote session (JIT)" set to "off" instead of the required "any". With this changed it now seems to work fine.

Thanks for the suggestion, it helped me fix the problem.

Regards,

Max
Previous Topic:Code completion in PHP
Next Topic:"Resource is out of sync", no Refresh on File menu
Goto Forum:
  


Current Time: Thu Apr 25 13:41:42 GMT 2024

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

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

Back to the top