Hi,
Xdebug is really giving me tough time. I have managed to installed xdebug, pdt and start the debugger. But the debugger is not working properly. I have observe following things.
1)As I start debugger PTD takes me to the debug perspective and opens a blank firefox window. (which is ok)
2) At debug perspective, I find that debugger is paused at drupal/index.php line no 12 ( this is probably because “breat at first line” is set in my debug window) and the firefox status says ”waiting for localhost”. (this is also ok)
3)Now as I push “resume” expecting the debuger to move next breakpoint, but nothing happens! The debugger shows “remote launch” and firefox says “waiting for localhost” Indefinitely.
4)Now if I terminate the “remote launch”, the waiting firefox displays drupals login page (first page) and another firefox window opens showing “DEBUG SESSION ENDED”. On address bar both windows show http://localhost//drupal/index.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY...
5)After first breakpoint I tried step debugging to see what drupal is doing, I found that it finnaly gets stuck at session.inc line 13.
function sess_close() {
return TRUE;
}
I have already wasted many hours but not getting what is wrong, it will be really helpful if someone can suggest something.
Thanks in advance.
Sandy
Comments
I am also having the same problem...
When I try to start debugging the browser indefinitely waits for localhost...
Please help!
xdebug 2.0.3
From xdebug support I found that xdebug 2.0.3 won't work properly with PDT 1.0.2
Try xdebug 2.0.2, for me it worked !
oh, god! You saved my day!!!
oh, god! You saved my day!!! Who released sooo buggy 2.0.3:-x
Another trick wanted, do I have to click the red terminate button to stop debugging every time? Can it be auto terminated and removed when browser is closed? Thanks.
Update: Eclipse PDT XDebug
I wanted to create a development environment on my laptop running Vista using Eclipse, XDebug and the Acquia Drupal Stack.
I downloaded and installed the Eclipse Package for PHP Developers from http://www.eclipse.org/downloads, which included Eclipse 3.5.1, PDT 2.1.1, and has XDebug support built in. I installed PHP 5.2.11 under my Eclipse directory and configured this PHP installation as my PHP Executable in Eclipse, and installed the XDebug dll, to make sure the Eclipse PHP Debug - Script functionality was working. Here are my XDebug settings for the Eclipse php.ini:
[XDebug]
zend_extension_ts="C:/Users/owner/Programs/eclipse/php/ext/php_xdebug-2.0.5-5.2.dll"
xdebug.remote_enable=false
xdebug.remote_handler=dbgp
xdebug.profiler_output_dir="C:\Temp"
I installed Acquia Drupal Stack, and upgraded the older version of PHP it came with to 5.2.11, and configured the XDebug dll for this installation of PHP as well, so I could use Eclipse's Debug as PHP Web Page configurations. The XDebug settings for the Drupal Stack php.ini:
zend_extension_ts="C:\Program Files (x86)\acquia-drupal\php\ext\php_xdebug-2.0.5-5.2.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_output_dir="C:\Temp"
Note that the remote_host setting is for the localhost on which Eclipse is running, NOT the Drupal Stack Apache address which is 127.0.0.1:8082 by default (I had typed this incorrect address initially and of course the debugger did not work).
Dave Kelsey has created an excellent guide, XDebug Support in PDT 2.0, which can be found at:
http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pdf, which explains much of the nuances of using XDebug with PDT.
captaindav
http://icfolson.com