How do you get debugging to work? [message #630914] |
Tue, 05 October 2010 10:52  |
Eclipse User |
|
|
|
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 05:12   |
Eclipse User |
|
|
|
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 !
Been there, done that 
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 
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 #632950 is a reply to message #632921] |
Thu, 14 October 2010 14:30   |
Eclipse User |
|
|
|
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 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 ?
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 #634608 is a reply to message #630914] |
Fri, 22 October 2010 08:32  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.25613 seconds