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.
Find out where you are using the call stack - JavaScript Tutorial
From the course: Learning JavaScript Debugging
Find out where you are using the call stack
- [Instructor] In this video we're going to look at the Call Stack in a little more detail. And see how it's a little bit like a time machine. This example looks just the same but I've added a little be it a new JavaScript for the purpose of illustrating the Call Stack. Let's scroll down a little bit. To this line. Where I have a function called goGetSomeData. Let's set a break point there and reload. Okay. So we've stopped right before this function is going to execute. Here's the Call Stack. I'm going to step into this function. We could see here we are inside goGetSomeData now. And as I'm stepping through this-- I scroll down to Scope. You could see my variables are starting to update. Returnables is now an empty array. And I have another function here called getMyReturnables. But before we get into that let's watch what happens when we click around in this Call Stack. I go back up, inside my anonymous ready function, here. To goGetSomeData. And then before that I'm into jQuery…
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)
-
-