195P PHP xdebug OSX [w/ subs]



00:00:00 – now let's go ahead and try to build the
00:00:01 – xdebug extension and i'm going to go
00:00:05 – ahead and launch a terminal window is
00:00:08 – under applications utilities and I'm
00:00:10 – gonna log into the superuser so pseudo
00:00:14 – dash a** sued ashes and my password
00:00:20 – ok so now i have a command line prompt
00:00:23 – and i'm going to CD to my home directory
00:00:25 – if i'm not there already and make dear
00:00:28 – annex debug folder that I can work it
00:00:31 – already had one but there's not anything
00:00:35 – in there so here's where i am online
00:00:37 – machine you're under your user account
00:00:40 – and to get started I'm going to go XD
00:00:46 – bug in chrome and that will give me a
00:00:49 – link to xdebug dot org and i'm going to
00:00:53 – go to this download page and to get
00:00:56 – extra bug you want to use get so i'm
00:00:59 – going to copy this command right here
00:01:01 – oversee and clover G so i don't have to
00:01:09 – get installed on this machine yet so i'm
00:01:11 – going to go ahead and click install and
00:01:13 – i'm going to agree to the license
00:01:25 – ok so it is installed and do an LS so
00:01:33 – now i'm going to run get again get clone
00:01:35 – so it's downloading all the stuff I need
00:01:40 – ok so no I should have the source
00:01:49 – yeah so CD xdebug so now i'm inside of
00:01:53 – an ex debug folder inside of my ex debug
00:01:55 – folder and here's all the source code
00:01:57 – for xdebug so I need to make the xdebug
00:02:02 – extension but i also need to make sure
00:02:05 – that it matches my release of PHP which
00:02:08 – is part of those and distribution and so
00:02:12 – there's a command called PHP is that I
00:02:16 – can do to use to do that let me just
00:02:19 – check to see whether there are already
00:02:21 – Mac binaries available so these all seem
00:02:25 – to be windows binaries oh that's too bad
00:02:32 – ok so see what we have
00:02:37 – zamp xdebug OSX see if we can find some
00:02:44 – information
00:02:50 – yes I need PHP is
00:03:02 – if it's in our path already and if so
00:03:04 – which one so which PHP eyes
00:03:08 – ok so that's an user been that's not the
00:03:12 – right line so what we want to find /
00:03:16 – applications
00:03:18 – zamp grep PHP is ok so this is the one
00:03:26 – we want which is an applications and
00:03:28 – files been so to make sure that it looks
00:03:31 – for that first I want to add that to my
00:03:33 – path so here's my path and what I want
00:03:39 – to do is I want to put applications and
00:03:42 – files been in the front of this path so
00:03:46 – to do that I say export / application is
00:03:53 – zam zam files then slash and then colon
00:04:05 – the contents of the existing path not
00:04:11 – see what we got here
00:04:12 – oh we need to set path equal to that
00:04:21 – alright so path is equal to that and i
00:04:25 – exported so now if I echoed our sign
00:04:29 – good so it has this path in the front
00:04:33 – before the other stuff if I say which
00:04:36 – lips which PHP is good now it's finding
00:04:42 – the right 1i have an extra / in there so
00:04:45 – let me fix that i'm gonna close this
00:04:48 – window and start a new one to do it ash
00:04:54 – s CD till the slash X the X debug and
00:05:04 – then echo path and the
00:05:09 – explore have equal applications lamp Zen
00:05:18 – files then colon our son back and then
00:05:25 – which PHP is good so not finding the
00:05:29 – right one
00:05:30 – so let's see what we have here
00:05:45 – alright so i think that i need to PHP is
00:05:53 – first so PHP is in my next blog holder
00:05:58 – and it's finding PHP api version 2015 10
00:06:05 – 12 which so i need to install the build
00:06:14 – system as well
00:06:40 – ok so here's a command line for doing
00:06:57 – what we want to copy that and paste and
00:07:13 – then so that fetched it and then that
00:07:16 – zipped it so now we're gonna cut /
00:07:34 – configure inside of the auto conch and
00:07:43 – then we'll make and make install which
00:07:52 – auto good so now we have an auto time so
00:07:57 – we'll go back up into our xdebug
00:07:59 – directory so here's where we are and no
00:08:03 – I'm gonna execute this command
00:08:07 – [Music]
00:08:12 – nope
00:08:21 – first we need to PHP is ok so this time
00:08:27 – we didn't get that error message so my
00:08:29 – work so we should have a docken figure
00:08:31 – able xdebug and PHP configuration
00:08:37 – applications and files been PHP config
00:08:43 – so that looks ok we should just actually
00:08:45 – be able to say that select configure
00:08:51 – believe that enable that's the bug in
00:08:53 – there okay and then make the
00:09:09 – so I should have some files in the
00:09:13 – modules folder here let's go ahead and
00:09:17 – just take a quick look at those warnings
00:09:20 – they look ok I mean we'll see if we have
00:09:25 – the module so let's just go here so CD
00:09:29 – modules alas good so we have that XD bug
00:09:35 – that SI no that's what we need and we
00:09:38 – need to put it in a specific place so
00:09:43 – that's going to be in zamp
00:09:44 – it's under applications applications zam
00:10:00 – zam files live and then PHP extensions
00:10:10 – this no debug 9z TS 2015 10 12 that
00:10:19 – actually matches what we had for so here
00:10:22 – all the s 0 files the extensions and
00:10:25 – this is where we want to put this
00:10:26 – extension as well so i'm going to copy
00:10:29 – xdebug s oh so you can copy both things
00:10:35 – to applications zam zam files live PHP
00:10:47 – extensions and then know like so
00:10:57 – alright so now i have the X debug that
00:11:00 – is so in the right place then the next
00:11:03 – thing I have to do is enable it in PHP
00:11:07 – and nip file so that's going to be under
00:11:10 – sam etsy PHP dot ini
00:11:15 – I just going to double click to open
00:11:17 – that and then I'm going to scroll down
00:11:19 – until I see all we come into that
00:11:21 – extension directives explanation
00:11:28 – scrolled let me scroll there's a big
00:11:30 – block of extension directors oh there
00:11:33 – they are and they're all commented out
00:11:34 – and i'm going to add a new one its
00:11:39 – tension equal xdebug that s 0 and then
00:11:49 – i'm going to save that file PHP dot ini
00:11:52 – then I'm gonna go back to OSX manager
00:11:56 – manager dash on this X and managed
00:12:09 – servers i'm going to stop apache and
00:12:16 – then i'm going to start it
00:12:24 – it's running don't see anything bad in
00:12:27 – the application log and i'm also going
00:12:30 – to look at under logs PHP error log and
00:12:38 – at the end it says xdebug must be loaded
00:12:41 – as end extension let's go ahead and go
00:12:48 – to local host here go to PHP info search
00:12:58 – for xdebug ok so there's an xt bug block
00:13:02 – and it has all the stuff in here so
00:13:08 – that's good so that means that actually
00:13:10 – loaded the extension if you see all this
00:13:13 – stuff in your PHP info that means that
00:13:15 – loaded the extension now we just need to
00:13:17 – set the correct settings so i'm going to
00:13:22 – go ahead and back in LSX manager but i'm
00:13:31 – going to stop Apache again and then i'm
00:13:38 – going to get into the core-shell so let
00:13:42 – me login here
00:13:44 – PCD you login
00:13:58 – and then good desire2learn find the 195
00:14:06 – peak or she'll go to content
00:14:21 – installation
00:14:25 – okay so here's the stuff that I need so
00:14:35 – go ahead and copy all that and then
00:14:39 – that's what goes in my PHP dot ini so
00:14:46 – I'm gonna in addition to this extension
00:14:48 – equal xdebug that s 0 at the very bottom
00:14:50 – i'm just going to go ahead and add all
00:14:54 – that stuff and save again and then i'm
00:15:02 – going to restart apache ok let's look at
00:15:14 – the PHP log more time in case
00:15:23 – just warnings but seems to be okay so
00:15:26 – that should be everything for going to
00:15:29 – just go ahead and reload phpinfo and
00:15:31 – that's a lot of the extra bucks stuff
00:15:33 – here so that should be everything you
00:15:35 – need to get extra bug working in PHP on
00:15:39 – OSX


Video Url:
http://youtu.be/c9nQXHIb434

(Visited 3 times, 1 visits today)

Comments

comments