Installing Zend PHP Debugger for Eclipse on OSX
A quick tutorial on installing the Zend debugger in Eclipse on OSX. The debugger allows you to step through code line by line as it executes - taking the guesswork out of debugging PHP web applications.
Links Referenced in the Video:
Walkthrough Instructions:
http://verysimple.com/2011/08/16/inst...
Zend Studio Web Debugger (Apache Module):
http://www.zend.com/en/products/studi...
Zend Debugger Plugin Install Site (Eclipse Plugin):
Zend - http://downloads.zend.com/pdt
Configuration Text for php.ini
zend_extension=/usr/lib/php/extensions/ZendDebugger.so
zend_debugger.expose_remotely=always
zend_debugger.connector_port=10000
zend_debugger.allow_hosts=127.0.0.1/32,192.168.*.*,10.*.*.*
Closed Caption:
is little tutorials usually Adam
installers in debugger
for Eclipse city you can debug your PHP
applications
anamensis ages can what you get by doing
this
%uh I just have word press Install um
and I have to be better off configured
which is when she added you and me do
that
to go to the index you can see debug as
PHP web page
and leakage is notice I'm actually in a
debugger
and I can them step June
the actual wordpress.com to turn
time actually debug we can look at
variables and then pilots
run all the way through to give you a
little browser unit you
can see the updated and when I clicked a
new page instantly
this deception just immediately going to
debug mode I'm going to
doesn't close down because to get
started we need to do
om three different things okay so to
start with
clean each you download
is and nom
debugger and I'm doing this on Mac OS
so on OSX I'm online and on
and I believe starting with Snow Leopard
apaches 64-bit
see need to 64-bit version if that's
where I'm
running generally archive file which had
done already
and it's yours and debugger and
if you extract this
at what you get is folder that
corresponds to you
come all the church is a PHP and I'm
online again so that has five points 3.6
she need to know the version PHP cats
and essentially all you know that his
he and debugger eso which is
an Apache extension and ninety-one a
copy that
someplace am the most sensible place
I like to play is where other extensions
are and at his in
sin sir line
PHP okay and citizen extensions for
minutes
are you get some stuff in it you can see
that I already have
added sandy berger there now we just
need to end it
PHP I and II in order to
com tell Apache to test their I N
he's a tech center how small Tron
and I already have my PHP I and II and
you need to add
these lines in here and
cat is highlighted here try to copy it
into the video and is an extension
is the path to that Cindy that ISO file
Anna expose remotely always
leave this allows you to debug
remote servers but you may want to
look that up to see what that means
exactly am the default connector port
is 10,000 and then allowed host you need
to put in the IP addresses that are
allowed to connect to the debugger
you can just copy and paste ease and
everything should work
when she have essayed you gonna need to
restart Apache
you the easy way through
System Preferences sharing Sun check
when sharing
check it back never done
and now T give this a test to make sure
that would loaded
candidates man lands Keech p dash him
which shows you the
on load modules we should see the bottom
here
sandy berger cell that tells us that
everything is
working with TM sandy berger much okay
now that we have to examine
debugger install needs you can see here
eclipse
first thing that we need to do is
install dozen
debugger each install new software
minutes left the site Zen if you don't
have this already you can add it
by clicking the Add button in the URL is
HTTP
slash last download: status and dot com
slash
GTG an inside their you will see the
season
debugger teacher and I'm not going to
install this
because I actually just installed
manually by copying this
folders but tac channel 8 anything to
decide which is that he's here
and once you install Daniel hatchery
start
clips and at the restart Eclipse
you will have some preferences to help
teach to
under PHP preferences the first funny
once you check his PHP executed
and you should have a default one in
here and
features none that are default I believe
the debugger me had a bunch
in here for you the one that I use is
them
OSX PHP installed so I just given an
arbitrary name
on even the path a serb in PHP
and then you have to be at the past year
I and i felt just right it
and CT scan I and II I leave this alone
Clin on
why on it's not CGI and its Eli
and ends in deeper
in said faults it's not already
energy HP servers should already be an
injury there
but what it won't happen is what has
local Webroot film out
tell he should have your server root
and then you need to you points you on
the physical directory where
local host group is
once you've done that should be reading
done
and inner-city bad trigger php project
in here
and unlike other projects where you
the boat from the folder level see using
debug
on you actually have to go into the php
page that you're going to be devoting so
index that PHP is the starting point
WordPress
and what happens when I see
yes I get the action for PHP web page
and seems to do that
immediately goes into that a break point
United said it just stops to first-line
code
I'm gonna go ahead and just let it run
an we have years to when does he have a
browser window
allows you to go in in every age where
you
need to go for debugging and opens up
that page that's
actually be deferred now um
that's not really the way that I like to
do debugging so I go into debug
configurations
and treated in automatic adjustment on
charity but it's created one called
index because that's what my founding
once
I don't like that name yourself I do is
read it
WordPress because it seems to be tragic
specifics
its a.m. in RT figured out where the
path to
missing is a the shuttle out I am check
this break at first lines at like it
just immediately on its debug mode
unusually set a breakpoint
wanted to you and applied at
and now when the debug
we don't get and we don't get a break
and as we go in set 1 so for example
at the break there and it breaks
so that's all there is to it
feels really comments let me know what
you think talk to you later
Video Length: 08:03
Uploaded By: Jason Hinkle
Published: 8/16/2011
View Count: 10,209