Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » trouble with Zend Debugger(moving this post to different board)
trouble with Zend Debugger [message #645630] Sun, 19 December 2010 02:43 Go to next message
ubscott  is currently offline ubscott Friend
Messages: 3
Registered: December 2010
Junior Member
hi,

i posted this on another board:
http://www.eclipse.org/forums/index.php?t=msg&th=201928& amp;start=0&S=157315387bc1969a380887df2e7c9241

with apologies, i'm posting it again on this one, where hopefully it will have more interest.

* * * *

i have been going in circles trying to get Eclipse + php debugging for Drupal working. i have installed Eclipse a couple of times from different sources. then i decided to delete them and pick up the 'all-in-one' version of Eclipse from the Zend site:
http://www.zend.com/en/community/pdt

(I got the 32 bit for Linux. this is not the Zend Studio upgrade.)

with Eclipse Helios up and running, i installed the XTend Drupal plugin:
http://xtend.us/downloads/eclipse

I also downloaded the Zend Server-Debugger from this page:
http://downloads.zend.com/pdt/server-debugger/
http://downloads.zend.com/pdt/server...23-i386.tar.gz

i have some reservations about where I put Eclipse and the Zend Debugger. I put them both in my Drupal root; i.e.,
http://localhost/Drupal

then i modified the PHP.ini. (I know we're not supposed to do this. however, every time i try to create an INI in the /etc/apache2/conf.d folder, I get an error. i don't know how to make a custom INI.)

i changed the PHP to add these lines:

zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
zend_extension_manager.debug_server=/var/www/Drupal/ZendDebu gger-5.2.14-linux-glibc23-i386/5_2_x_comp
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always

I have closely looked over the paths given for zend_extension and zend_extension_manager.debug_server. The paths are correct.

when i run phpinfo.php, among the many lines of output I see this:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

(I don't see a message indicating the Zend Debugger is working.)

from Eclipse, i have created a project that points to the folder of my Drupal installation. I have created a Debug Configuration that points to the index.php for the particular installation of Drupal i am attempting to debug.

when i try to test the debug configuration i get this familiar error:
"A timeout has occurred on http://localhost/Drupal/foobar/index.php . Please verify the Zend Debugger is properly installed on the server and that the 'dummy.php' is located in your Web Server's document root."

i don't think the problem is the dummy.php, as i copied it into /var/www .

does anyone have any ideas?

thanks in advance.

* * * *

(in response to a suggestion from someone on another board (besides eclipse.org) I commented out the reference in the PHP.ini to Zend_Extension_Manager. Here's my reply to the person who made that suggestion).

...thanks for the reply. i commented out the line in php.ini that refers to the Zend_extension_manager. the php.ini looks like:
zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always

i restarted Apache. i also verified (again) that the zend_extension path is correct.

unfortunately, nothing has changed. phpInfo shows the same message; it doesn't indicate the Zend Debugger is working.

also, when i start Eclipse Helios, click 'debug configurations' and then try to test the index.php for my Drupal installation, i get the same error about Zend Debugger and/or the dummy.php.



Re: trouble with Zend Debugger [message #645699 is a reply to message #645630] Mon, 20 December 2010 03:18 Go to previous message
ubscott  is currently offline ubscott Friend
Messages: 3
Registered: December 2010
Junior Member
hi,

i clicked on the 'configuration' button on the Debug Configurations page. i changed the document root path. i'm no longer getting the error i mentioned at the top of this thread. instead, now i'm receiving:

Quote:
a timeout occurred when the debug server attempted to connect to the following client hosts/IPS:
127.0.0.1


i found these threads which discuss the error message:
http://drupal.org/node/929198
http://www.eclipse.org/forums/index.php?t=tree&th=197804 &S=0e4cdbfcd13d6ea5d4cc662fd90b15db

apparently a lot of people just give up on Zend Debugger and try xdebug instead. i haven't quit on Zend, yet. i'm still trying to figure out how to use it.

i will post a resolution when i have one. thanks.

Previous Topic:Can't compare CVS files in PDT
Next Topic:Help developing DCOM client in JAVA
Goto Forum:
  


Current Time: Thu Apr 25 01:05:23 GMT 2024

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

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

Back to the top