文中用的是chrome浏览器
- step 快捷键:F9 单步执行
- step into 快捷键:F11 全称:step into next function
单步执行,遇到子函数就进去继续单步执行 - step over 快捷键:F10 全称:step over next function
单步执行,遇到子函数并不进去,将子函数执行完并将其作为一个单步 - step out 快捷键:Shift + F11 全称:step out of current function
直接跳出当前的函数,返回父级函数
以下是调试界面