How to Debug java Script Error Using Firebug?
How can I set breakpoints in an external JS script in Firebug
Why Firebug , try Visual studio , it has a rich debugging features ;)