What is a good Javascript debugging tool?

后端 未结 16 757
渐次进展
渐次进展 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:35

    As others have pointed out, most javascript debugging tools come as part of a browser because they are tightly integrated with the Javascript engine itself. This is probably a good thing because you will want to debug each browser separately if you run into a browser-specific quirk.

    In the Internet Explorer world, you have two options:

    1. As Ryan Lynch pointed out, the Microsoft Script Debugger is a separate debugging environment that talks with IE. If you have Visual Studio Web Developer Edition, the tool should already be available to you. You can attach directly to IE from within VS.
    2. Recommended: Use a debugger that runs in the browser. IE8 has Developer Tools built-in (press F12) or download the Web Development Helper for earlier versions. Both provide a good light-weight environment right inside IE. They also help to debug CSS layout and other aspects of a website.
    0 讨论(0)
  • 2020-11-29 06:39

    I use firebug most of the time with the following firebug plugins.

    • FireRainbow, FireRainbow enables javascript syntax highlighting for Firebug. This is really cool. Saves a lot of time.

    • FirePHP,FirePHP enables you to log to your Firebug Console using a simple PHP method call.

    • Widerbug, can leverage wide screens for js debugging/development. Obsolete now as it is supported in Firebug 1.9 right out of the box.

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

    I use Javascript Debugger plugin to debug errors that are not easy to figure out in firebug. You can set up break points and step through problem area to see variable values..etc. It's a very useful tool.

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

    For IE (which I don't suggest using), the latest version (IE8) includes developer tools.

    IE8 developer tools

    For Firefox, there's an extension called Firebug that has DOM manipulation, a JS console, and more.

    firebug DOM inspector firebug JS debugger

    WebKit (used in Safari and Chrome) has a built-in Web Inspector that includes a JS debugger, along with a DOM outline and manipulation tools, and a JS console.

    webkit DOM inspector webkit JS debugger webkit network profiler webkit resource info

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

    Firebug for FireFox and AJAX Dynatrace for IE http://ajax.dynatrace.com/pages/

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

    LINE BY LINE JAVASCRIPT DEBUGGING

    To get following set of features try any of the below mentioned two methods.

    Features:

    1. Set and Pause at breakpoints.
    2. Step into
    3. Step out
    4. Step over
    5. Watch values at breakpoints pause
    6. Toggle breakpoints
    7. Continue from paused breakpoints
    8. and many more...

    Method 1:

    1. Google Chrome > Inspect > Sources Tab
    2. For detailed help

    Method 2:

    1. Mozilla Firefox > Inspect Element(Q) > Debugger Tab
    2. For detailed help
    0 讨论(0)
提交回复
热议问题