码迷,mamicode.com
首页 > 编程语言 > 详细

THE DEFINITIVE GUIDE TO DEBUGGING JAVASCRIPT

时间:2019-01-09 00:36:34      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:int   spec   cas   too   about   cal   sum   edit   work   

  • FIGURING OUT WHERE THE ERROR COULD BE

  • READ THE CODE

  • USING THE CONSOLE

  • THE CHROME DEV TOOLS

  • THE DEBUGGER

  • BREAKPOINTS

  • SCOPE

  • WATCH VARIABLES AND EXPRESSIONS

  • RESUME THE EXECUTION

  • EDIT SCRIPTS

  • INSPECT THE CALL STACK

  • BLACKBOX SCRIPTS

    Often times you work with libraries where you don’t want to “step into”, you trust them and you don’t want to see their code in the call stack, for example. Like in the above case for validator.min.js, which I use for email validation.

  • USE THE BROWSER DEVTOOLS TO DEBUG NODE.JS

  • USE THE BROWSER DEVTOOLS TO DEBUG NODE.JS

    • Open your terminal and run node --inspect
    • Then in Chrome type this URL: about://inspect.

原文:THE DEFINITIVE GUIDE TO DEBUGGING JAVASCRIPT

THE DEFINITIVE GUIDE TO DEBUGGING JAVASCRIPT

标签:int   spec   cas   too   about   cal   sum   edit   work   

原文地址:https://www.cnblogs.com/rosendolu/p/10241994.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!