Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Xdebug stopped breaking breakpoints
Xdebug stopped breaking breakpoints [message #80212] Mon, 15 September 2008 15:58 Go to next message
Eclipse UserFriend
Originally posted by: yfreeman.gmail.com

Hello all developers, I'm a long time user of the PDT tools. It is a fantastic set of tool and I depend on it every day to get my work done.

But last night about 11 pm the php debugging perpective stopped breaking at breakpoints. Everything was working fine and then suddenly it stopped.

I did everything from
- reinstalling eclipse + pdt to the lastest 1.0.3 version
- reinstalling the webserver + xdebug 2.0.3
- using different xdebug clients i can communicate with the debugger.
- played with php.ini settings

When i hit the debug button the following happens
- eclipse launces server (19%)
- browser loads up
- page loads
- eclipse kicks into the php debug perspective as if the debugging has ended (no breakpoint breaking)

I set the debugger to break at the first line

clearly the following thing are happening
- xdebug is running fine (I tested bad php pages and got full xdebug niceness)
- eclpse/pdt is receiving response from the debuger (or it would hang as Lauching 19%)
- eclipse/pdt is communicating back

I found that I can log the communication so...

my php.ini config is as follows

[XDebug]
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
xdebug.remote_log = "C:\xampp\xdebug.log"

the log for one debug try is as follows

<log_start>

Log opened at 2008-09-15 15:47:29
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/projects/drupal/index.php" language="PHP" protocol_version="1.0" appid="3652" idekey="ECLIPSE_DBGP"><engine version="2.0.3"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2008 by Derick Rethans]]></copyright></init>

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

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

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

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

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

<- breakpoint_set -i 72 -t line -f file:///C:%5Cprojects%5Cdrupal%5Cindex.php -n 15
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="72" id="36520032"></response>

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

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

Log closed at 2008-09-15 15:47:30

</log_end>

the only anomaly that i can see right off the bat is how the filenames are escaped in rawurl encoding. I have no idea how to change this. I scoured the preferences and found nothing, I tried even set the PHP > Debug > Encoding Settings to US-ASCII and same output.

Please excuse the long post, I just wanted to include all the stuff I tried with no luck and what I've found.

Thank you for your help
Joseph Freeman



--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
Re: Xdebug stopped breaking breakpoints [message #80230 is a reply to message #80212] Mon, 15 September 2008 16:24 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Couple of things to check

1. have a look at the FAQ on http://www.xdebug.org. There is a specific entry for XAMPP which may be
applicable

2. If you have any watch expressions, try deleting them. A Script can be terminated abnormally if
you have a watch expression enabled that does something like invoke an undefined function.

Dave Kelsey
Re: Xdebug stopped breaking breakpoints [message #80289 is a reply to message #80212] Mon, 15 September 2008 22:19 Go to previous message
Shawn Clark is currently offline Shawn ClarkFriend
Messages: 70
Registered: July 2009
Member
Joseph,

Just throwing this out there as it is something that has caught me off
guard before, has the location of your files on the server moved? Within
the XDebug in Eclipse there is a setting to map the absolute location of
the files on the server to your local workspace project. If it isn't
mapped properly XDebug will start and everything will run as if it is
doing what it needs to but won't break as the file doesn't match.

--
Shawn Clark

Joseph Freeman wrote:
> Hello all developers, I'm a long time user of the PDT tools. It is a fantastic set of tool and I depend on it every day to get my work done.
>
> But last night about 11 pm the php debugging perpective stopped breaking at breakpoints. Everything was working fine and then suddenly it stopped.
>
> I did everything from
> - reinstalling eclipse + pdt to the lastest 1.0.3 version
> - reinstalling the webserver + xdebug 2.0.3
> - using different xdebug clients i can communicate with the debugger.
> - played with php.ini settings
>
> When i hit the debug button the following happens
> - eclipse launces server (19%)
> - browser loads up
> - page loads
> - eclipse kicks into the php debug perspective as if the debugging has ended (no breakpoint breaking)
>
> I set the debugger to break at the first line
>
> clearly the following thing are happening
> - xdebug is running fine (I tested bad php pages and got full xdebug niceness)
> - eclpse/pdt is receiving response from the debuger (or it would hang as Lauching 19%)
> - eclipse/pdt is communicating back
>
> I found that I can log the communication so...
>
> my php.ini config is as follows
>
> [XDebug]
> zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
> xdebug.remote_enable=true
> xdebug.remote_host=localhost
> xdebug.remote_port=9000
> xdebug.remote_handler=dbgp
> xdebug.profiler_enable=1
> xdebug.profiler_output_dir="C:\xampp\tmp"
> xdebug.remote_log = "C:\xampp\xdebug.log"
>
> the log for one debug try is as follows
>
> <log_start>
>
> Log opened at 2008-09-15 15:47:29
> -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/projects/drupal/index.php" language="PHP" protocol_version="1.0" appid="3652" idekey="ECLIPSE_DBGP"><engine version="2.0.3"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2008 by Derick Rethans]]></copyright></init>
>
> <- feature_set -i 67 -n show_hidden -v 1
> -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="67" feature="show_hidden" success="1"></response>
>
> <- feature_set -i 68 -n max_depth -v 3
> -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="68" feature="max_depth" success="1"></response>
>
> <- feature_get -i 69 -n max_children
> -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="69" feature_name="max_children" supported="1"><![CDATA[32]]></response>
>
> <- feature_get -i 70 -n encoding
> -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="70" feature_name="encoding" supported="1"><![CDATA[iso-8859-1]]></response>
>
> <- feature_get -i 71 -n supports_async
> -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="71" feature_name="supports_async" supported="1"><![CDATA[0]]></response>
>
> <- breakpoint_set -i 72 -t line -f file:///C:%5Cprojects%5Cdrupal%5Cindex.php -n 15
> -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="72" id="36520032"></response>
>
> <- step_into -i 73
> -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="73" status="stopping" reason="ok"></response>
>
> <- stop -i 74
> -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop" transaction_id="74" status="stopped" reason="ok"></response>
>
> Log closed at 2008-09-15 15:47:30
>
> </log_end>
>
> the only anomaly that i can see right off the bat is how the filenames are escaped in rawurl encoding. I have no idea how to change this. I scoured the preferences and found nothing, I tried even set the PHP > Debug > Encoding Settings to US-ASCII and same output.
>
> Please excuse the long post, I just wanted to include all the stuff I tried with no luck and what I've found.
>
> Thank you for your help
> Joseph Freeman
>
>
>
> --------------= Posted using GrabIt =----------------
> ------= Binary Usenet downloading made easy =---------
> -= Get GrabIt for free from http://www.shemes.com/ =-
>
Previous Topic:Re: Xdebug stopped breaking breakpoints
Next Topic:Namespace support!?
Goto Forum:
  


Current Time: Thu Mar 28 22:34:01 GMT 2024

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

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

Back to the top