What is a good Javascript debugging tool?

后端 未结 16 758
渐次进展
渐次进展 2020-11-29 06:12

Haven\'t touch javascript for 3 years. Just got a javascript project and wanted to know any new ways or tools emerged these years to debug javascript? I used alert 3 years

相关标签:
16条回答
  • 2020-11-29 06:53

    If you need IE7 debugging, use IE8 in compatibility view with developer tools.

    0 讨论(0)
  • 2020-11-29 06:54

    I think a Visual Studio / IE8 combo is excellent. Beats Firebug for JavaScript debugging, IMO (and you, of course, use a framework like jQuery to handle crossbrowser issues).

    0 讨论(0)
  • 2020-11-29 06:55

    You really need a crossbrowser toolkit. Here's mine:

    • Gecko (Firefox) : Firebug
    • Opera : Dragonfly
    • WebKit (Safari / Chrome) : Web Inspector
    • IE : Microsoft script debugger

    EDIT:

    IE 8 added some developer tools, but I haven't used them to any great extent.

    EDIT:

    If you haven't done JS development in a while I recommend saving yourself a lot of time debugging cross browser issues by browsing the compatibility tables on Peter-Paul Koch's excellent quirksmode site.

    0 讨论(0)
  • 2020-11-29 06:55

    real programmers use printf() traces for debugging (kidding).

    var de =true, bug =console.log||alert||(de=false)
    
    de&&bug( "Enjoy!")
    

    When not in debug mode, just do de=false. Minimal performance penalty

    0 讨论(0)
提交回复
热议问题