Firebug doesn't load JavaScript files or stops execution at breakpoints

I am new to Firebug and am having big problems.

  • JavaScript files usually appear empty or partially load (sometimes)
  • Lines are not available for frequent breakpoints (line numbers are grayed out)
  • When I set breakpoints, script execution often does not stop at them

I am using Firebug 1.3.3 and Firefox 3.0.11. I disabled all other add-ons. I download Javascript from localhost. Sometimes closing the window and reopening the page I was on is cleared, but it never lasts more than two pages.

I am working on learning jQuery, which obviously has a huge library, but I think many others use Firebug for the same, so this should not be a problem. In addition, most of the time (but not always) Firefox loads and does not launch JavaScript without problems; just Firebug doesn't see it.

Due diligence:

These discussions seem to cover the same issue, but have no answers:

  • "Firebug doesn't show Javscript errors" - http://groups.google.com/group/firebug/browse_thread/thread/443848cd11be48e1? pli = 1
  • "firebug doesn't always load javascript" - http://code.google.com/p/fbug/issues/detail? id = 1644 & q = empty% 20javascript & colspec = ID% 20Type% 20Status% 20Owner% 20Test% 20Summary

(Sorry, I'm new and not allowed to hyperlink them)

+4
source share
1 answer

A few suggestions. Make sure you turn on console panels, networks, and Firebug script.

In the network pane, you should see which js files have downloaded. In the console panel, you can enter console.log(jQuery) and return function() .

This should confirm that jQuery is really loaded and running.

Then go to the script panel and you will see four options at the top. Inspect, Edit, Static, and then a drop-down list of your scripts. This is what you want. Select the script you want to debug.

Based on your question, you probably already know about it, but make sure that it all works in the first place.

If you do not see jQuery in the script list, can you do console.log(jQuery) ?

PS. This is not a matter of size. I regularly upload js files that are 10x jQuery in size.

Edit: A few more suggestions:

1) Reduce to the simplest case and add back. Remove all your scripts other than jQuery, and then add other scripts in stages. Is there one that consistently violates it.

2) Put try / catch clauses around suspicious code blocks. I often found that the FB stops reporting errors after an uncaught exception was thrown.

 try { // your code here } catch (e) { console.log(e) } 

3) Configure another FF profile to check if you have the same problem.

+4
source

All Articles