课程: Learning JavaScript Debugging
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Step into, over, and out of functions - JavaScript教程
课程: Learning JavaScript Debugging
Step into, over, and out of functions
- [Instructor] In this video, we're going to try the various stepping functions that we can use to navigate our JavaScript in the debugger once we're stopped. So I have my index.html file open in my Chrome debugger, and I'm down here where my custom JavaScript exists, so I'm gonna set a break point right here at the very beginning of my custom JavaScript, so in this case, on line 311. Now I'll reload the page. Okay, I've stopped, and I'm right here on the first variable assignment for flowers here. Now I'm executing a little bit of jQuery. So the first stepping function that you'll probably use the most at first, is the step over, and this will step over particular functions to the next executable piece. The way the stepping functions will behave in different debuggers is gonna vary a little bit, but the general idea is the same. If there's a function that's executing on the line where you're stopped, step over will take you to whatever the next one is, so let's try it. First, we're…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
(已锁定)
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 秒
-
(已锁定)
-
-