Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » xdebug not working
xdebug not working [message #63607] Wed, 19 December 2007 22:01 Go to next message
Eclipse UserFriend
Originally posted by: naoric.gmail.com

Hi,

For some reason, eclipse ignores breakpoints in my code.

when i start the debugging, the page is loaded with these URL:
http://localhost/cooper/php_info.php?XDEBUG_SESSION_START=EC LIPSE_DBGP&KEY=11981012364688

I'm using Wamp Server solution, running PHP 5.2.5

PHP INI:
[xdebug]
xdebug.remote_enable=1
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
zend_extension_ts="C:\wamp\bin\php\php5.2.5\ext\php_xdebug.dll "
xdebug.remote_log="C:\wamp\bin\apache\apache2.2.6\logs\xdebug.log "


These are the ports eclipse listens to (netstats -a -b output):
TCP atary-2ea14b6f6:9000
[eclipse.exe]

TCP atary-2ea14b6f6:10000
[eclipse.exe]

I can only terminate current session, and when i do that another IE window
is being opened with these URL:
http://localhost/cooper/php_info.php?XDEBUG_SESSION_STOP_NO_ EXEC=ECLIPSE_DBGP&KEY=11981009197656

debugx.log is also attached


Log opened at 2007-12-19 21:33:07
-> <init xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
fileuri="file:///C:/wamp/www/Cooper/php_info.php" language="PHP"
protocol_version="1.0" appid="732" idekey="ECLIPSE_DBGP"><engine
version="2.0.2"><![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>

<- feature_set -i 1 -n show_hidden -v 1
-> <response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set"
transaction_id="1" feature="show_hidden" success="1"></response>

<- feature_set -i 2 -n max_depth -v 3
-> <response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set"
transaction_id="2" feature="max_depth" success="1"></response>

<- feature_get -i 3 -n max_children
-> <response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get"
transaction_id="3" feature_name="max_children"
supported="1"><![CDATA[32]]></response>

<- feature_get -i 4 -n encoding
-> <response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get"
transaction_id="4" feature_name="encoding"
supported="1"><![CDATA[iso-8859-1]]></response>

<- feature_get -i 5 -n supports_async
-> <response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get"
transaction_id="5" feature_name="supports_async"
supported="1"><![CDATA[0]]></response>

<- breakpoint_set -i 6 -t line -f
file:///http://localhost/cooper/php_info.php -n 2
-> <response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set"
transaction_id="6" id="7320001"></response>

<- stack_get -i 7
-> <response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get"
transaction_id="7"></response>

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

Log closed at 2007-12-19 21:33:07
Re: xdebug not working [message #63633 is a reply to message #63607] Thu, 20 December 2007 08:18 Go to previous message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Can you tell me which version of PDT you are using ?
Can you also go to your php server definition (window-->preferences, PHP Servers under the PHP
Branch). Edit the server definition and select the path mapping tag. Can you tell me what
information is stored in that panel.

I can see why you aren't stopping at breakpoints. What I don't understand is the information PDT is
sending to xdebug regarding the name of the file to stop in. It is requesting the file to stop at is
http://localhost/cooper/php_info.php which is definitely not correct.

Cheers
Dave Kelsey

Naor wrote:
> Hi,
> For some reason, eclipse ignores breakpoints in my code.
>
> when i start the debugging, the page is loaded with these URL:
> http://localhost/cooper/php_info.php?XDEBUG_SESSION_START=EC LIPSE_DBGP&KEY=11981012364688
>
> I'm using Wamp Server solution, running PHP 5.2.5
>
> PHP INI:
> [xdebug]
> xdebug.remote_enable=1
> xdebug.remote_host="127.0.0.1"
> xdebug.remote_port=9000
> xdebug.remote_handler="dbgp"
> zend_extension_ts="C:\wamp\bin\php\php5.2.5\ext\php_xdebug.dll "
> xdebug.remote_log="C:\wamp\bin\apache\apache2.2.6\logs\xdebug.log "
>
>
> These are the ports eclipse listens to (netstats -a -b output):
> TCP atary-2ea14b6f6:9000
> [eclipse.exe]
>
> TCP atary-2ea14b6f6:10000
> [eclipse.exe]
>
> I can only terminate current session, and when i do that another IE
> window is being opened with these URL:
> http://localhost/cooper/php_info.php?XDEBUG_SESSION_STOP_NO_ EXEC=ECLIPSE_DBGP&KEY=11981009197656
>
>
> debugx.log is also attached
>
>
> Log opened at 2007-12-19 21:33:07
> -> <init xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
> fileuri="file:///C:/wamp/www/Cooper/php_info.php" language="PHP"
> protocol_version="1.0" appid="732" idekey="ECLIPSE_DBGP"><engine
> version="2.0.2"><![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>
>
> <- feature_set -i 1 -n show_hidden -v 1
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set"
> transaction_id="1" feature="show_hidden" success="1"></response>
>
> <- feature_set -i 2 -n max_depth -v 3
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set"
> transaction_id="2" feature="max_depth" success="1"></response>
>
> <- feature_get -i 3 -n max_children
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get"
> transaction_id="3" feature_name="max_children"
> supported="1"><![CDATA[32]]></response>
>
> <- feature_get -i 4 -n encoding
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get"
> transaction_id="4" feature_name="encoding"
> supported="1"><![CDATA[iso-8859-1]]></response>
>
> <- feature_get -i 5 -n supports_async
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get"
> transaction_id="5" feature_name="supports_async"
> supported="1"><![CDATA[0]]></response>
>
> <- breakpoint_set -i 6 -t line -f
> file:///http://localhost/cooper/php_info.php -n 2
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set"
> transaction_id="6" id="7320001"></response>
>
> <- stack_get -i 7
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get"
> transaction_id="7"></response>
>
> <- step_into -i 8
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into"
> transaction_id="8" status="stopped" reason="ok"></response>
>
> Log closed at 2007-12-19 21:33:07
>
>
Previous Topic:pdt debugger object inspection
Next Topic:[Q] Installing PHP for Eclipse
Goto Forum:
  


Current Time: Thu Mar 28 15:42:46 GMT 2024

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

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

Back to the top