文中用的是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
    直接跳出当前的函数,返回父级函数

以下是调试界面

js中debugger常用的几个命令

相关文章:

  • 2021-11-15
  • 2021-06-01
  • 2021-05-24
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-19
  • 2021-09-29
  • 2021-07-13
  • 2021-10-24
  • 2022-02-08
  • 2021-11-24
相关资源
相似解决方案