| View previous topic :: View next topic |
| Author |
Message |
Freman
Joined: 25 Aug 2009 Posts: 4
|
Posted: Wed Nov 04, 2009 6:49 am Post subject: [Solved] Xdebug 2.0.5 (PHP5.3.0) debugging issue |
|
|
Greetings.
I'm afraid I can't get Xdebug to work.
Vital Stats:
PHP 5.3.0 (cli) (built: Oct 9 2009 19:59:11)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
Product Version: NetBeans IDE 6.8 M2 (Build 200910071658)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Linux version 2.6.31-14-generic running on i386; UTF-8; en_AU (nb)
Userdir: /home/freman/.netbeans/6.8m2
I freshly upgraded to NetBeans IDE 6.8 M2 to see if that would resolve my issue.
if I use xdebug_break(); the IDE correctly breaks, but no breakpoints I set in the IDE work, and "Stop at the First Line" doesn't work
I've configured the webroot to be 'root' under the source folder
Dump from "stop at first line" + a few break points set - booting to /root/index.php
| Quote: | <?xml version="1.0" encoding="UTF-8"?>
<init appid="10844" fileuri="file:///www/{sanitized}/root/index.php" hostname="127.0.0.1" idekey="freman" language="PHP" protocol_version="1.0" proxied="true" xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><engine version="2.0.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2009 by Derick Rethans]]></copyright></init>FINE [org.netbeans.modules.php.dbgp.packets.DbgpCommand]: command to send : feature_set -i 0 -n show_hidden -v 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="0" feature="show_hidden" success="1"></response>FINE [org.netbeans.modules.php.dbgp.packets.DbgpCommand]: command to send : feature_set -i 1 -n max_depth -v 3
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="max_depth" success="1"></response>FINE [org.netbeans.modules.php.dbgp.packets.DbgpCommand]: command to send : feature_set -i 2 -n max_children -v 31
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_children" success="1"></response>FINE [org.netbeans.modules.php.dbgp.packets.DbgpCommand]: command to send : feature_get -i 3 -n max_data
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="3" feature_name="max_data" supported="1"><![CDATA[1024]]></response>FINE [org.netbeans.modules.php.dbgp.packets.DbgpCommand]: command to send : breakpoint_set -i 4 -t line -s enabled -f file:///www/{sanitized}/include/classes/Decimal.php -n 82
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="4" state="enabled" id="108440006"></response>FINE [org.netbeans.modules.php.dbgp.packets.DbgpCommand]: command to send : breakpoint_set -i 5 -t line -s enabled -f file:///www/{sanitized}/root/index.php -n 8
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="5" state="enabled" id="108440007"></response>FINE [org.netbeans.modules.php.dbgp.packets.DbgpCommand]: command to send : breakpoint_set -i 6 -t line -s enabled -f file:///www/{sanitized}/root/index.php -n 1
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="6" state="enabled" id="108440008"></response>FINE [org.netbeans.modules.php.dbgp.packets.DbgpCommand]: command to send : step_into -i 7
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="7" status="stopping" reason="ok"></response>
FINE [org.netbeans.modules.php.dbgp.ServerThread]
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.netbeans.modules.php.dbgp.ServerThread.run(ServerThread.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)
FINE [org.netbeans.modules.php.dbgp.ServerThread]
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.netbeans.modules.php.dbgp.ServerThread.run(ServerThread.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619) |
_________________ -- This space reserved --
Last edited by Freman on Thu Nov 05, 2009 1:10 am; edited 1 time in total |
|
| Back to top |
|
 |
AGeorge
Joined: 25 Jun 2009 Posts: 8
|
Posted: Wed Nov 04, 2009 9:28 pm Post subject: |
|
|
When you look at phpinfo does it show that xdebug has been instantiated?
If so and your break on first line is set, then it should break.
If not then check the xdebug is suited to the version of PHP that you are using.
Al |
|
| Back to top |
|
 |
Freman
Joined: 25 Aug 2009 Posts: 4
|
Posted: Wed Nov 04, 2009 10:21 pm Post subject: |
|
|
Well, 2.0.5 is the latest released XDebug, and yes it appears to be working (in the quote you can see xdebug talking to netbeans and visa versa...)
It's not breaking on line break lines set in netbeans.
It's not breaking on the first line as configured in netbeans.
It is breaking when I physically insert xdebug_break() in the code.
I'm not sure if it's netbeans or xdebug, I don't understand the xdebug protocol enough.
| Code: | | FINE [org.netbeans.modules.php.dbgp.packets.DbgpCommand]: command to send : step_into -i 7 |
This appears to be netbeans telling xdebug to step into line 7 of the file...
| Code: | | <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="7" status="stopping" reason="ok"></response> |
And this appears to be xdebug's response... but after that I don't know what's supposed to happen... _________________ -- This space reserved -- |
|
| Back to top |
|
 |
Freman
Joined: 25 Aug 2009 Posts: 4
|
Posted: Thu Nov 05, 2009 1:09 am Post subject: |
|
|
Solved.
This was set in php.ini
xdebug.extended_info=0
It can't be overridden anywhere, not locally, not in apache via php_value settings. _________________ -- This space reserved -- |
|
| Back to top |
|
 |
vuklaca
Joined: 06 Nov 2009 Posts: 1
|
Posted: Fri Nov 06, 2009 7:26 pm Post subject: |
|
|
Hello there,
xdebug.extended_info is set to 1 for me, but I have the same problem... execution only breaks when I call xdebug_break()...
I use netbeans 6.7. and xampp 1.7.1 (php 5.2.9, xdebug 2.0.4)
Help much appreciated. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|