课程: Learning JavaScript Debugging
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Solution: Other people's code
(electronic music) - [Instructor] Let's work through a solution to this other people's code challenge. First we're going to try shuffling and dealing a few times just to confirm that even though there's way too many cards, it does look like we're getting a variety here. So it's at least partially working. I don't see any duplicate cards. Some of them are getting hidden up here but it seems safe to say that we are not getting duplicates. And even though this is not working, giving us the right number of cards, there's at least some good in here. So we'll open up the developer tools and go to our debugger. Here's the cards.js file here. We know that we have a handler that takes care of shuffling and dealing. So let's go visit that and set a breakpoint. I'll click this and here we go. We're paused. The first thing that I want to do is confirm that the size of the deck that we're getting back is actually correct. So…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
Debugging the use of a jQuery plugin6 分钟 7 秒
-
(已锁定)
Debugging a React application in Chrome9 分钟 8 秒
-
(已锁定)
Debugging on iOS using Simulator6 分钟 45 秒
-
(已锁定)
Remote debugging on an Android device3 分钟 23 秒
-
(已锁定)
Challenge: Other people's code7 分钟 52 秒
-
(已锁定)
Solution: Other people's code6 分钟 27 秒
-
(已锁定)
Debugging a Node.js application in WebStorm11 分钟 34 秒
-
(已锁定)
Setting up the WordPress example3 分钟 47 秒
-
(已锁定)
Challenge: Debugging with an IDE2 分钟 5 秒
-
(已锁定)
Solution: Debugging with an IDE4 分钟 47 秒
-
(已锁定)
Debug a WordPress theme in Visual Studio Code5 分钟 51 秒
-
(已锁定)
Use a debugger as a learning tool on a live site5 分钟 51 秒
-
-