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.
Leverage more of the Console API - JavaScript Tutorial
From the course: Learning JavaScript Debugging
Leverage more of the Console API
- [Narrator] In this video, we're going to take a look at some other features of the console API that you might not be quite as familiar with. Here in my JavaScript console, I can type console and as soon as I type dot, I get a list of all these methods that are available. There's a whole bunch of 'em. And of course, default JavaScript stuff as well. So you might not have used very many of these, and that's what we're gonna take a look at. Over here in Visual Studio Code, I'm going to jump down to the bottom of the file, one of the first things is that console.log doesn't just take a string as an argument. You can pass multiple arguments to it. So let's change this swipe left to console.log. We'll keep swipe left here but then we'll pass in a few other of these parameters so we can see what they are. Let's take direction and event. Okay, I'm gonna save this and switch back, I'll reload. Here's my light box, I'm going to swipe left and you can see that first I get my message, then I…
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)
-
-