课程: Learning JavaScript Debugging
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Debugging without a debugger
- [Instructor] In this video, we're going to look at basic debugging without a debugger using in-browser developer tools and the basics of the console API. So I'm looking here at an example file. This is from a fictitious business called hansel and petal. Just an example business we have for courses here, and I have this page with some available bouquets. The expected behavior is that if I click any of these flower images, it's gonna load in a little lightbox. If I click the images though, it loads the image directly, no JavaScript happening here. So something is clearly broken and we need to find out why. To do that, we're going to open the developer tools. In Chrome, I can go to the view menu, developer, and open the developer tools. I can also use Command + Option + I on a Mac. And right now, it's loaded up over here on the right side. In this little dot menu, I have some various options for where I can place it. I can put it down here at the bottom, and I'm also going to make it a…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
(已锁定)
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 秒
-
(已锁定)
-
-