Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Can't get PHP Web Script with XDebug to hit breakpoints remotely
Can't get PHP Web Script with XDebug to hit breakpoints remotely [message #48621] Fri, 31 August 2007 22:15 Go to next message
Dennis McRitchie is currently offline Dennis McRitchieFriend
Messages: 2
Registered: July 2009
Junior Member
I'm using XDebug 2 on a Linux server running Apache 2. I can communicate
successfully with the debugclient app from my Windows XP machine.

I then try to run Eclipse 3.3 on my Windows machine w/ all the necessary
packages (pdt-all-in-one-incubation-S20070826_M3-win32.zip), plus the two
jar files from XDebugBinContrib_0.2.3.zip and
org.eclipse.php.xdebug.sampleMapper_0.0.2.jar.

I've configured my Eclipse debug configuration per Dave Kelsey's "XDebug PHP
IDE Guide" (including the HTDoc tab), and set some breakpoints. When I
launch, an IE browser window opens and displays all the expected output,
ignoring the breakpoints. The PHP Debug view shows that the project is
terminated. I've tried different settings on the HTDoc tab, but without
success.

The log output from the server side is as follows:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Log opened at 2007-08-31 22:01:30

-> <init xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
fileuri="file:///var/local/raas/document_root_apache2/test.php"
language="PHP" protocol_version="1.0" appid="31453"
idekey="ECLIPSE_DBGP"><engine
version="2.0.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
(c) 2002-2007 by Derick Rethans]]></copyright></init>

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

Log closed at 2007-08-31 22:01:30
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is exactly the same output as I got when I tested debugclient from my
Windows machine.

Is this what I should be seeing if I had no breakpoints? Any idea why I'm
not hitting any breakpoints? Can I turn on any additional logging on the
eclipse client side? Or can I make the server logging more verbose?

Thanks,
Dennis
Re: Can't get PHP Web Script with XDebug to hit breakpoints remotely [message #48650 is a reply to message #48621] Sat, 01 September 2007 02:19 Go to previous messageGo to next message
Marijn is currently offline MarijnFriend
Messages: 19
Registered: July 2009
Junior Member
This "issue" has already been addressed in the past week. Please read the
thread "Can't get XDebug to work" originally created by myself. Remote
debugging is currently not possible however Dave Kelsey hopes to have a
solution for this soon.

Regards,

Marijn.
Re: Can't get PHP Web Script with XDebug to hit breakpoints remotely [message #48709 is a reply to message #48621] Sat, 01 September 2007 08:03 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
XDebug support is included in M3, so you should not install the XDebug
zip files from bugzilla any more.

As pointed out by Marijn, unfortunately there is no solution for path
mapping as yet in M3.

Dave Kelsey

Dennis McRitchie wrote:
> I'm using XDebug 2 on a Linux server running Apache 2. I can communicate
> successfully with the debugclient app from my Windows XP machine.
>
> I then try to run Eclipse 3.3 on my Windows machine w/ all the necessary
> packages (pdt-all-in-one-incubation-S20070826_M3-win32.zip), plus the two
> jar files from XDebugBinContrib_0.2.3.zip and
> org.eclipse.php.xdebug.sampleMapper_0.0.2.jar.
>
> I've configured my Eclipse debug configuration per Dave Kelsey's "XDebug PHP
> IDE Guide" (including the HTDoc tab), and set some breakpoints. When I
> launch, an IE browser window opens and displays all the expected output,
> ignoring the breakpoints. The PHP Debug view shows that the project is
> terminated. I've tried different settings on the HTDoc tab, but without
> success.
>
> The log output from the server side is as follows:
>
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> Log opened at 2007-08-31 22:01:30
>
> -> <init xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
> fileuri="file:///var/local/raas/document_root_apache2/test.php"
> language="PHP" protocol_version="1.0" appid="31453"
> idekey="ECLIPSE_DBGP"><engine
> version="2.0.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
> Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
> (c) 2002-2007 by Derick Rethans]]></copyright></init>
>
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopped"
> reason="ok"></response>
>
> Log closed at 2007-08-31 22:01:30
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> This is exactly the same output as I got when I tested debugclient from my
> Windows machine.
>
> Is this what I should be seeing if I had no breakpoints? Any idea why I'm
> not hitting any breakpoints? Can I turn on any additional logging on the
> eclipse client side? Or can I make the server logging more verbose?
>
> Thanks,
> Dennis
>
>
Re: Can't get PHP Web Script with XDebug to hit breakpoints remotely [message #48886 is a reply to message #48709] Mon, 03 September 2007 16:27 Go to previous message
Dennis McRitchie is currently offline Dennis McRitchieFriend
Messages: 2
Registered: July 2009
Junior Member
Hi Dave,

Thanks for the reply. I've now backtracked to M2 + the bugzilla xdebug and
mapper jar files, and it seems to be working fine, breakpoints and all.

I'll look forward to M4 (or whatever it will be called), which hopefully
will have xdebug support restored.

Thanks again for all the good work.

Dennis

"Dave Kelsey" <dkel50@hotmail.com> wrote in message
news:fbb6d3$7os$1@build.eclipse.org...
> XDebug support is included in M3, so you should not install the XDebug
> zip files from bugzilla any more.
>
> As pointed out by Marijn, unfortunately there is no solution for path
> mapping as yet in M3.
>
> Dave Kelsey
>
> Dennis McRitchie wrote:
>> I'm using XDebug 2 on a Linux server running Apache 2. I can communicate
>> successfully with the debugclient app from my Windows XP machine.
>>
>> I then try to run Eclipse 3.3 on my Windows machine w/ all the necessary
>> packages (pdt-all-in-one-incubation-S20070826_M3-win32.zip), plus the two
>> jar files from XDebugBinContrib_0.2.3.zip and
>> org.eclipse.php.xdebug.sampleMapper_0.0.2.jar.
>>
>> I've configured my Eclipse debug configuration per Dave Kelsey's "XDebug
>> PHP IDE Guide" (including the HTDoc tab), and set some breakpoints. When
>> I launch, an IE browser window opens and displays all the expected
>> output, ignoring the breakpoints. The PHP Debug view shows that the
>> project is terminated. I've tried different settings on the HTDoc tab,
>> but without success.
>>
>> The log output from the server side is as follows:
>>
>> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
>> Log opened at 2007-08-31 22:01:30
>>
>> -> <init xmlns="urn:debugger_protocol_v1"
>> xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
>> fileuri="file:///var/local/raas/document_root_apache2/test.php"
>> language="PHP" protocol_version="1.0" appid="31453"
>> idekey="ECLIPSE_DBGP"><engine
>> version="2.0.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
>> Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
>> (c) 2002-2007 by Derick Rethans]]></copyright></init>
>>
>> -> <response xmlns="urn:debugger_protocol_v1"
>> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopped"
>> reason="ok"></response>
>>
>> Log closed at 2007-08-31 22:01:30
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
>> This is exactly the same output as I got when I tested debugclient from
>> my Windows machine.
>>
>> Is this what I should be seeing if I had no breakpoints? Any idea why I'm
>> not hitting any breakpoints? Can I turn on any additional logging on the
>> eclipse client side? Or can I make the server logging more verbose?
>>
>> Thanks,
>> Dennis
>>
Previous Topic:Specifying command line arguments for php scripts
Next Topic:Problem Occurred Processing Dirty Regions
Goto Forum:
  


Current Time: Mon Dec 30 17:16:23 GMT 2024

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

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

Back to the top