Symfony Live London 2013

Xdebug para programadores Symfony

Derick Rethans  · 

Código de la presentación

Puedes acceder al código fuente utilizado en esta presentación en el siguiente enlace:

derickrethans.nl/talks/xdebug-sfliveldn13

Transcripción

Extracto de la transcripción automática del vídeo realizada por YouTube.

all right welcomes afternoon about to talk about XD back the tide is actually XD book for symphony developers now i have to admit i started looking at symphony not more than a week ago so I don't know simply variable but i know XD book very well and i

ran into some issues not knowing what the hell to do a symphony so I did consider for a moment Jason is talking to using addy book to figure out what the hell symphony is doing instead of exhibitors for symphony developer so will it will be a little bit of

a mix of both now how many of you have not used symphony before that's very good there's only me raising that just stacking how how many of you whose XD but before that's a lot of people so if you already have used it before what are you doing

here that sounds good as a silly question but I screaming it seriously what I trying to get out of this talk shout something at me oh you shy well if you don't to mention it then that's fine it'll anyway let me get started here so I'm Derek

I'm dirt with live here in London I work for mongodb I work on the peach private for that this song has absolutely nothing to do with us except that i'm wearing a t-shirt and i also wrote XD work as one of my hobby projects over the think the past

well here's is something like that so it's been quite some time alright so it's basically three things it is good as development aight i know symphony is really nice fancy stacktrace ting already in there but i'll get back to the moment saying

what I think it's not good enough controversial comments there and i'll be looking at life debugging and a bit of profiling so and now let me get started so the original idea is that X ebook is there in PHP to make what the driven original point was

to make aids to make PHP actually do useful things where you get errors now for example in those days you'd get an error message like right what does this really say I mean it basically tells you that there's an empty document but how the hell you

got here in this application you had never have any idea because if this is a few things you know it misses a stack trace so that's the first thing that I like zebras which is a big stack race oh yes this one isn't orange as you can see now of course

in with sympathy simply already steals the stack trace away from your heart they feel if you have a look at that now if I remember my domain names correctly that's a very high IP number of course this is a live demo now in symphony did so for this presentation

because I don't know symphony at all and didn't have the time to write an application in symphony in in a week's time really I am I used something else that I was slightly familiar with this ez publish it's a company I used to work for Norway

years and years ago and they recently started having a symphony based part of the application so I thought well that's a good enough point for me to look at because I know how does application works how wrong was I has changed the locks but there's

a few things that are still the same so when I was installing this application at some point yeah it asks for installation details and it asks for a myschool socket connection now my my skill knowledge is by now absolutely zero but I I still know a little

bit hard to higher ground rethink so what I expect is to get a very nice XD book or NT stack trace orange is my favorite color that's why I get a orange things in naqvi work but yeah in symphony you sort of don't get this right you get you get more

of this and it has a few nice things in it like it has a cute icon as always good as a cute icon it tells you unable to connect to the database server that's the right it does exist but end of the thief and running that is gone to connect to it and you

get the sector AC which is really quite helpful so you get to stack trace here and it's a bit small what we can make a bit there it's a bit small but you get like a nice line numbers here right so what did mrs. in my opinion is I can't click on

any of those lines and it opens in my editor that this work that is cheating that didn't work yesterday anyway very handily it opens right very well now in your editor so i'm using VII by final de lille in phpstorm guru like the person before me event

so far would be to be stolen or scarred like wow but I'm pretty good with VI now it still doesn't quite tell me where it is when wrong right I know the exception go thrown at this line but that's normally quite good enough but you can click on

the lines now I still prefer seeing the orange stack traces in XD book mostly because it does add a bit more information it helps more information because in some cases here like if you have an object it doesn't show you the arguments of the object or

any of the properties in it and win XD but you do see that information that is the reason for that you concede here is because PHP its solved as an exported information so simply can't retrieve that information from PHP but so I was thinking well how do

I fix this right how how can I tell Symphony multi shows fancy stock phrases and it wants to guess how I found out to fix that by removing the line in the codes so where did that go go I had a nice so I have so many things open here that I'm a bit lost

myself that's about risking something else where did it go where did it go well it's easy enough to find any I can't stop that one week of them application so my trick for this is was just finding and I just did a grab for let me make the big bigger

I just grabbed for said Aaron Hendra cuz that's I know that originally easy pillars had exactly the same problem so I knew what to look for so there's one in there that says in Symphony said air handler with two mothers I need to make a bit smaller

devices too many lines where does it go listen to them there somewhere simply debug ergo I already have to open somewhere but it doesn't matter so if I remove this one yeah I've already added Cobra coasters more slashes in your chicken C so I had to

actually disable the setting of the arahan layer so that I could get my nice orangi stack traces again yep that makes sense oh let it go sorry too many things open here let me start the application again and then when i reloaded them hopefully and it still

doesn't work right I did plan this but the orange stack traces out more information here and it also more information as much as you want in it as well and I'll go back to the slide itself because he or she can see it only has simple variables right

were simple arguments but if there's an object you can instruct it to get the objects in there with all the properties in there so now what I would like to see at some point is so integration between XD work and symphony that that gives simply the possibility

to use XD books and homes methods and capabilities as well that that will mean that it needs to be some change in it and simply but also summon XC but it would be happy to have a look at us because I do think there's a benefit of having this loaded as

well well you've been spoiled with all the nice the stack trace already and Symphony so we're not looking at that but there's a few other things in here so anybody few familiar with Vardon fardon dents out variables right now so in the same bit

of coats that I had here yep I want to do a VAR dump of the handler just to see what was in there just for the fun so let me in command that as well and restart a web server that even listed only come online that's pretty cool I hadn't seen a dinner

but if I do that in the application then it gets it renders it really nicely like this first as she saw let me draw it again because slow enough and then symphony stat howdy called a symphony stylesheets load and they told that nicely all the elements in HTML

[ ... ]

Nota: se han omitido las otras 3.930 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.