Now, thiswayofdebuggingdoeswork, butitis a bitcumbersome, constantlyaddingandremovingconsuldotlocksallovertheplaceunderhimtoshowyou a slightlyniceawayinthecode, wesimplyremovetheconsuldotlogandinitsplace, weputtheword D bugger.
Ifthereisn't one, andyoucanjustremovethebreakpointbyclickingitagain, youcanpressthisdownourhairtoskipintofunctionsorthisrightfacingarrowheretostepthroughthecodeonelineat a time.
Sothisgoesintoanotherfunction.
Cool.
Andsomewheredownherewe'vegotthevalleywewant.
Wethoughtitwas a string, andthisiswhatwe'vegot a problem, butit's actuallyanobjecton.
Wewantthe U.
R L property, whichis a strengthonthebugger, givesustheexactlineofcodeweneedtogoandfixit.
Sowegobacktoourcode.
Weknowtheexactlinenumberwherewe'vegottheproblembecausewesawitinthedeepbuggerandnowwejustfixitbyaddingdot u R l Andofcourse, wegodownonWeremovedthedebug a statement.