From the course: Learning JavaScript Debugging
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Step into, over, and out of functions - JavaScript Tutorial
From the course: Learning JavaScript Debugging
Step into, over, and out of functions
- [Instructor] In this video, we're going to try the various stepping functions that we can use to navigate our JavaScript in the debugger once we're stopped. So I have my index.html file open in my Chrome debugger, and I'm down here where my custom JavaScript exists, so I'm gonna set a break point right here at the very beginning of my custom JavaScript, so in this case, on line 311. Now I'll reload the page. Okay, I've stopped, and I'm right here on the first variable assignment for flowers here. Now I'm executing a little bit of jQuery. So the first stepping function that you'll probably use the most at first, is the step over, and this will step over particular functions to the next executable piece. The way the stepping functions will behave in different debuggers is gonna vary a little bit, but the general idea is the same. If there's a function that's executing on the line where you're stopped, step over will take you to whatever the next one is, so let's try it. First, we're…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Debugging without a debugger5m 16s
-
(Locked)
Leverage more of the Console API7m 4s
-
Stop and look around: Simple breakpoints5m 24s
-
(Locked)
Explore other breakpoint options7m 47s
-
(Locked)
Challenge: Knowing when to stop2m 28s
-
(Locked)
Solution: Knowing when to stop3m 56s
-
(Locked)
Step into, over, and out of functions5m 48s
-
(Locked)
Find out where you are using the call stack4m 34s
-
(Locked)
Monitor variables with watches5m 16s
-
(Locked)
Source maps to debug minified files4m 41s
-
(Locked)
Challenge: Putting it all together4m 10s
-
(Locked)
Solution: Putting it all together8m 52s
-
(Locked)
-
-