How can I debug my JavaScript code?

debugging, javascript

Solution

Firebug is one of the most popular tools for this purpose.

Problem

When I find that I have a problematic code snippet, how should I go about debugging it?

Original source

Related problems