课程: Learning JavaScript Debugging
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Explore other breakpoint options
- [Instructor] breakpoints that pause execution are really useful by themselves, but we do have some other options for how we can stop and look around under different conditions. Let's take a look at some of those. Here's a fresh example that looks just like the ones we've seen before, but it's a little different, and has a small bug. Let's take a look at what that bug is. I'm going to open this colorbox, and now take a look at what's happening when I swipe in either direction with this image counter. So if I swipe left, I'm moving forward through the images, which is what I would expect, but then if I swipe right, I'm still moving forward through the images. So, we're not quite doing the right thing here, and we're gonna fix it. So I'm gonna open up my developer tools with command + option + I. And here in the sources pane, I'm going to open the index.html file where my JavaScript is, and scroll all the way down. So here's our new implementation. Instead of using swipe left and swipe…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
(已锁定)
Debugging without a debugger5 分钟 16 秒
-
(已锁定)
Leverage more of the Console API7 分钟 4 秒
-
Stop and look around: Simple breakpoints5 分钟 24 秒
-
(已锁定)
Explore other breakpoint options7 分钟 47 秒
-
(已锁定)
Challenge: Knowing when to stop2 分钟 28 秒
-
(已锁定)
Solution: Knowing when to stop3 分钟 56 秒
-
(已锁定)
Step into, over, and out of functions5 分钟 48 秒
-
(已锁定)
Find out where you are using the call stack4 分钟 34 秒
-
(已锁定)
Monitor variables with watches5 分钟 16 秒
-
(已锁定)
Source maps to debug minified files4 分钟 41 秒
-
(已锁定)
Challenge: Putting it all together4 分钟 10 秒
-
(已锁定)
Solution: Putting it all together8 分钟 52 秒
-
(已锁定)
-
-