Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How do you get debugging to work?(Cannot install zend debugger)
How do you get debugging to work? [message #630914] Tue, 05 October 2010 14:52 Go to next message
peredurabefrog  is currently offline peredurabefrog Friend
Messages: 4
Registered: October 2010
Junior Member
Can anyone explain to me in simple terms how I can get debugging working in PDT?

I'm using Windows XP with XAMPP as my development environment and would like to use Eclipse PDT as my IDE.

Thinking it would be easier, I downloaded the Eclipse PDT version from Zend. I had a look at Zend Server CE, but decided against as it wants to install its own version of Apache whereas I already have everything set up using XAMPP.

So I tried the instructions at:

os-php-eclipse-pdt-debug-pdf.pdf

This led me to download the extension binaries from:

downloads.zend.com/pdt/server-debugger/

From those, I extracted the ZendDebugger.dll from the 5_2_x_comp directory (although XAMPP uses PHP 5.3) and put it in the extensions directory (C:\xampp\php\ext). There doesn't appear to be anything for PHP 5.3.

Then I added the following to the php.ini file (in C:\xampp\php):

[Zend]
zend_extension="C:\xampp\php\ext\ZendDebugger.dll"
zend_debugger.allow_hosts="127.0.0.1, 10.0.1.3"
zend_debugger.expose_remotely=always


Finally I restarted Apache, hoping to see the Zend Modules noted as set out in the document. But phpinfo() gives nothing and neither does php -m. So no luck there and I'm a bit stuck as to what I should do next.

Can anyone put me right? If using the Zend debugger isn't the right way to go I'm happy to use XDebug, if that's easier. I'm even happy to completely uninstall PDT and start again if necessary, because I've nothing spoiling in Eclipse (I've been using Bluefish up to now, but could do with some debugging facilities since the project has grown beyond what I can easily manage without debugging. Which is why I'm trying to get Eclipse PDT working).

Many thanks in advance.

Cheers


PAE
Re: How do you get debugging to work? [message #632780 is a reply to message #630914] Thu, 14 October 2010 09:12 Go to previous messageGo to next message
John Crisp is currently offline John CrispFriend
Messages: 5
Registered: October 2010
Junior Member
peredurabefrog wrote on Tue, 05 October 2010 10:52
Can anyone explain to me in simple terms how I can get debugging working in PDT?



Just going through the process myself but have got a bit further, though I am using Linux....

Quote:

I'm using Windows XP with XAMPP as my development environment and would like to use Eclipse PDT as my IDE.



Probably easier to install on Linux than Windows (not saying I am biased, but I think it is generally easier to setup a LAMP system out of the box)

Quote:

Thinking it would be easier,



Ho Ho !

Quote:
So I tried the instructions at:

os-php-eclipse-pdt-debug-pdf.pdf



Been there, done that Smile

In any event, you need to get your XAMPP environment working correctly first.

Quote:
Finally I restarted Apache, hoping to see the Zend Modules noted as set out in the document. But phpinfo() gives nothing and neither does php -m. So no luck there and I'm a bit stuck as to what I should do next.


This seems to indicate that either the web server or php aren't running correctly as you should get SOMETHING from those commands.

I would get that right first and forget the debugger bit for the minute. However, I can't really help you much more on a Windows setup Sad

Try getting a basic html page up, then a phpinfo page.

Re the Zend debugger, I got the plugins from here :

http://www.zend.com/en/community/pdt

http://downloads.zend.com/pdt/debugger/org.zend.php.debug_fe ature-I20081217.zip

With linux you need to use the correct version (5.1, 5.2, 5.3 or whatever) With windows you need the win32.x86 / php5 version.

Let us know how you get along.

B. Rgds
John
Re: How do you get debugging to work? [message #632921 is a reply to message #632780] Thu, 14 October 2010 16:28 Go to previous messageGo to next message
peredurabefrog  is currently offline peredurabefrog Friend
Messages: 4
Registered: October 2010
Junior Member
Sorry John, I misled you when I said I got nothing from phpinfo() etc. What I meant was that I got nothing in respect of the Zend debugger. Apache is working just fine.

Unfortunately, I have no choice of development environment. At home, it's Linux (Ubuntu), but in work - where I'm trying to get debugging working - it's WinXP.

I've used the downloads from Zend and followed the instructions to the best of my ability, so I don't really understand what the problem is.

Cheers


Peter
Re: How do you get debugging to work? [message #632950 is a reply to message #632921] Thu, 14 October 2010 18:30 Go to previous messageGo to next message
John Crisp is currently offline John CrispFriend
Messages: 5
Registered: October 2010
Junior Member
peredurabefrog wrote on Thu, 14 October 2010 12:28
Sorry John, I misled you when I said I got nothing from phpinfo() etc. What I meant was that I got nothing in respect of the Zend debugger. Apache is working just fine.



Ah, that'll help then Wink No worries.

Quote:
Unfortunately, I have no choice of development environment. At home, it's Linux (Ubuntu), but in work - where I'm trying to get debugging working - it's WinXP.



Work from home ? Change mental attitudes at work ? Sneaky dual boot ? Shocked

Quote:
I've used the downloads from Zend and followed the instructions to the best of my ability, so I don't really understand what the problem is.



So much for RTFM then ! I always do so I don't get b*llcked when posting, but they often don't solve the problem.

So you get a normal result from phpinfo() but no sign of a loaded module. my php -m gives :


[PHP Modules]
bz2
calendar
ctype
curl
date
dbase
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
json
ldap
libxml
mbstring
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
posix
pspell
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend Debugger
zip
zlib

[Zend Modules]
Zend Debugger

As long as you have the PHP5 win32 version of the dll you should be fine.

Anything in the log on Apache startup ? Mus be something to say what has or hasn't happened ?
Did it not find the dll ? If it found it, could it access/load it i.e. permissions ?

If need be I'll fire up a Vmware Xp session & try it myself.

Keep me posted.

B. Rgds
John
Re: How do you get debugging to work? [message #633338 is a reply to message #632950] Sat, 16 October 2010 17:19 Go to previous messageGo to next message
peredurabefrog  is currently offline peredurabefrog Friend
Messages: 4
Registered: October 2010
Junior Member
Hi John,

Thanks once again for your interest.

When I get into work on Monday I'll check out your suggestions and post again.

Cheers


Peter
Re: How do you get debugging to work? [message #634583 is a reply to message #632780] Fri, 22 October 2010 10:18 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1814
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 10/14/2010 11:12 AM, John Crisp wrote:
> peredurabefrog wrote on Tue, 05 October 2010 10:52
>> Can anyone explain to me in simple terms how I can get debugging
>> working in PDT?
>
>
> Just going through the process myself but have got a bit further, though
> I am using Linux....
>

For linux, I wrote this:
http://tronprog.blogspot.com/2009/03/pdt-xdebug-eclipse-in-l inux.html

hope this helps

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: How do you get debugging to work? [message #634608 is a reply to message #630914] Fri, 22 October 2010 12:32 Go to previous message
peredurabefrog  is currently offline peredurabefrog Friend
Messages: 4
Registered: October 2010
Junior Member
Thanks. I'll take a look.

I'm afraid I've been so busy this last week I haven't had chance to follow up on the help I've received (which I feel a bit guilty about). I'm on holiday next week, so I hope to make some progress the week after next.

Thanks to everyone for their help and patience.

Cheers


Peter
Previous Topic:Error
Next Topic:PHP Tasks
Goto Forum:
  


Current Time: Tue Oct 08 00:42:06 GMT 2024

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

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

Back to the top