I am setting breakpoints in an external JS file and I haven't been able to get Firebug hit the breakpoint in a consistent way. It works sometimes but most of the times it doesn't. The only way I can get it to work is by switching on "Break on all errors"
I have used the debugger; statement as well without any luck.
If the line numbers aren't green, it seems like Firebug cannot debug that part of code because it is out of scope. So, if you're using something like $(function () { ... }); Firebug will not be able to access Functions and variables.
Does that make sense?
Also, is it possible that some other function or something is overriding the one you're trying to debug. It's even possible if you're including the same JS file twice.
Hope that helps.