How to Debug java Script Error Using Firebug?
How can I set breakpoints in an external JS script in Firebug
You can use Firebug, and for debugging in chrome, you can use firebug lite