Which tools do you use to debug HTML/JS in your browser?

后端 未结 17 1701
梦谈多话
梦谈多话 2020-12-01 22:22

I\'d like to collect the best debugging aids for all browsers out there. So that would probably be Firebug for Firefox but what do you use for IE? Safari? Opera? Opera Mini?

相关标签:
17条回答
  • 2020-12-01 22:44

    For Firefox (any version > 2.0), use Firebug.

    0 讨论(0)
  • 2020-12-01 22:44

    Firebug / Firebug lite of course :) Google Chrome's JS console is also very nice

    0 讨论(0)
  • 2020-12-01 22:45

    dynaTrace Ajax for Deep Tracing of Internet Explorer

    0 讨论(0)
  • 2020-12-01 22:45
    • Fiddler http(s) debugging: http://www.fiddler2.com/fiddler2/
    • Web Developer toolbar for FireFox: https://addons.mozilla.org/nl/firefox/addon/60/
    • IE8 Developer Tools: http://blogs.msdn.com/b/ie/archive/2008/09/11/introducing-the-ie8-developer-tools-jscript-profiler.aspx
    • qooxdoo Inspector (IE, Firefox, Opera, Safari and Chrome): http://qooxdoo.org/application/inspector
    • Blackbird - You might never use alert() again: http://www.gscottolson.com/blackbirdjs/
    0 讨论(0)
  • 2020-12-01 22:45

    I suggest to use a DIV with the id="debug" and then add text to it for debugging. That allows you to overlay the HTML with the debug output and it doesn't block the flow of the app. Use a z-index to make sure it stays on top and give it transparency so you can see through it. See this answer for the CSS.

    Or open a new window and append your debug messages there.

    You can use this with nested DIVs to implement full-fledged logging. Have a look at this article on A List Apart and at log4js to get some ideas.

    0 讨论(0)
  • 2020-12-01 22:46

    A series of strategically placed window.alert function calls is handy in a pinch. If I can, I try to use Firebug Lite.

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