101

Why does Firebug say there is No Javascript on this page when there are clearly loads of JavaScript on the page. I even reloaded the page several time to make sure but it still show the same message.

It never used to do that before, but all of a sudden it misbehaves.

Is it because of some configuration issues or because of something else?

6
  • Sometimes if there is a script error on the page the entire script compilation could fail and Firebug doesn't see the script.
    – AllTooSir
    Jun 13, 2013 at 11:57
  • 1
    Could you provide a link for an example, please?
    – fflorent
    Jun 15, 2013 at 12:53
  • 21
    Bug has reappeared with Firefox 50 and Firebug 2.0.18
    – NickT
    Nov 17, 2016 at 11:56
  • I've just restarted Firefox and I'm getting this on ever site I visit. I was in the middle of working on something too! Nov 18, 2016 at 17:00
  • 2
    Damn!. My Ubuntu machine had version 49.0.2. Now without thinking I have just let it update to 50.0 as part of general housekeeping with 'Software Updater'. I can confirm that Firefox 50.0 and Firebug 2.0.18 doesn't work in Windows Vista and Ubuntu 16.04LTS
    – NickT
    Nov 19, 2016 at 11:19

17 Answers 17

125

As of Firefox version 50, it seems that Firebug will no longer work as Mozilla are migrating to Firefox Devtools. The tab Tools/Web Developer has a 'debugger' option. See this page for a discussion on the migration. Read all the posts dated 19 November for further information.

It seems to me that the option gives less functionality but Firebug per se is never going to be fixed for Firefox 50 and beyond

11
  • 5
    Thanks for updating us here, much appreciated. Nov 22, 2016 at 22:12
  • 9
    This should be the answer now, Firebug is dead. Nov 23, 2016 at 15:59
  • 11
    RIP Firebug :-(
    – freefaller
    Nov 24, 2016 at 18:20
  • 11
    That's it I'm quitting the web :D
    – TheTrueTDF
    Nov 30, 2016 at 8:52
  • 6
    Have briefly tried DevTools. Thinks that UI & feature set of DevTools is quite non-competitive with Firebug (e.g. for DevTools, javascript files list display like "...924821a54aacceb1870d07.js" VS Firebug's fullpath selection combobox; Cannot find "break on mutate"). User-friendly Firebug & Tab Groups are the main reasons I like using Firefox. Seeing they are becoming less User-friendly & good-looking than before, Mozilla will surely lost some real fans according to their decisions. Dec 6, 2016 at 4:43
53

EDIT 2017 April

This answer is now outdated and I'm not even testing it anymore because I'm no longer using Firebug (a shame, I loved it years ago in a time it was The tool of trade for web developing).

EDIT 2014 November

The original answer is now more than a year outdated due to firebug evolution. Thanks to @AmadeusDrZaius to keep it on tracks

Answer for outdated firebug versions For anyone still with this problem after updating Firebug. Just click Clear Activation List option inside the Firebug menu.

For those who can't find it, note that "Clear Activation List" shows up in the dropdown from the Firebug icon in the toolbar, but not the Tools > Web Developer > Firebug menu.

Firebug dropdown: Clear Activation List

I guess due to the bug previous hitting your working page it stays listed as "no activate FB for this site please".

10
  • 3
    That option isn't in the Firebug menu, and isn't mentioned in that link getfirebug.com/wiki/index.php/Firebug_Menu anymore either. Oct 29, 2014 at 19:04
  • 3
    This answer is outdated
    – Liam
    Nov 3, 2014 at 16:01
  • 3
    For those who can't find it, note that "Clear Activation List" shows up in the dropdown from the Firebug icon in the toolbar, but not the Tools > Web Developer > Firebug menu. Nov 8, 2014 at 22:32
  • 1
    There no longer seems to be a "Clear Activation List" option in the Firebug menu (I'm on version 2.0.6). However the plugin still seems to find itself in the same broken situation sometimes. (I've looked in the menu from both the toolbar and from the Firebug panel; it's not present in either location.)
    – Pointy
    Nov 21, 2014 at 22:16
  • 1
    I'm using FF 30.1.1 Firebug 2.0.6. The "Clear Activation List" option is the last option from the dropdown on the Firebug icon from the Firefox bar (not the firebug bar)
    – jean
    Nov 24, 2014 at 10:23
43

I encountered No Javascript on this page after upgrading Firefox to ver 50.0, with Firebug ver 2.0.18. I tried refreshing Firefox, even completely uninstall Firefox and installed again. Nothing works for me.

A couple of hours later, I downgraded Firefox to 49.0.2, and voila, it works right away. I downloaded the old version here.

5
  • 2
    Wow you're a lifesaver. Struggled for a couple of hours trying to learn the FireFox Developer Tools a knockoff of the Chrome debugger. Has some nice features, but did not like the fact I could not use FirePHP and also I noticed I could not get directly to eventListeners when I used querySelector. Used your link to get the old version back and like you said "voila"
    – Claus
    Nov 16, 2016 at 19:13
  • 1
    Yeah, I tried the alternatives developer tools in Chrome, MS Edge, IE, Firefox Developer Edition, but didn't like any of them. After installing the older version, don't forget to disable the auto-update by opening the Menu, select Options, click Advanced and then click the Updates tab.
    – kiatng
    Nov 17, 2016 at 0:55
  • Well done @kiatng - On my Windows Firefox 50 - no scripts work. On my Ubuntu 49.0.2 Firefox all is well. I hope they fix it for version 500 soon.
    – NickT
    Nov 17, 2016 at 11:49
  • 2
    According to blog.mozilla.org/futurereleases/2016/02/04/… Firefox 50.0.1 will be released on 2016-12-13, so it's a bit of a wait to see if they fix it.
    – CJ Dennis
    Nov 23, 2016 at 23:24
  • The 49.0.2 installer dies silently on my machine unless I select "Run as Administrator" from the context menu of resource explorer.
    – Pino
    May 9, 2017 at 14:37
13

I tried everything on this list and nothing worked for me except resetting Firefox like so:

https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-problems

3
  • 3
    +1 cause this helped! side note: after resetting all my add-ons where gone
    – caramba
    Nov 19, 2014 at 13:06
  • And losing and then reinstalling the firebug add-on may have helped! Who knows what version I used to have? A new version of FF was just installed in my case. Aug 12, 2015 at 17:50
  • This worked for me. It simply deletes everything form the browser. So I had to again install firebug plugin. Mar 16, 2017 at 5:51
9

I realize there are already 10 answers to this question, but in my case none of them helped. I'm running Firefox version 39.0 and Firebug version 2.0.11. The only fix is to completely restart Firefox (i.e. not just the tab or instance with the problem).

Perhaps it's due to Firefox's over-usage of memory, or maybe there's a bug in Firebug. I can't speak to that, but what I do know is it didn't work. I killed Firefox, opened the exact same page again with no changes made and now it works. This has happened to me numerous times and a complete restart always fixes it, but that's the only thing that does.

2
  • 1
    For me reopening the page in a new tab is enough, I can see the javascript again for a while.
    – csauvanet
    Aug 6, 2015 at 14:48
  • @csauvanet +1 for your tip; opening a new tab was enough for me as well. Aug 10, 2015 at 19:28
8

Since Firefox 49.0 and Firebug 2.0.18 the Script panel is broken. This is due to some internal Firefox API changes. And because Firebug is officially discontinued, this unfortunately won't get fixed anymore.

There was also a bug in Firebug 2.0.11 (and below) in combination with Firefox 39.0 causing this problem. This bug is filed as issue 7918.
It happens when the Script panel is enabled and you close Firebug and reopen it.

You can see two related error messages logged to the Browser Console (can be opened via Ctrl+Shift+J or Firebug menu > Developer > Browser Console):

error occurred while processing 'attach: TypeError: docShell is null Stack: getChildDocShells@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/webbrowser.js:53:7 ...

and

onPacket threw an exception: Error: Server did not specify an actor, dropping packet: {"error":"unknownError","message":"error occurred while processing 'attach: TypeError: docShell is null\nStack: getChildDocShells@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/webbrowser.js:53:7 ...

Solution:

The only solution until this bug is fixed is to restart Firefox completely.

3

Similar things have happened to me because I forgot to add the closing tag.

DON'T do this:

<script src="some.url" type="text/javascript">

or

<script src="some.url" type="text/javascript"/>

DO this instead:

<script src="some.url" type="text/javascript"></script>
1
  • Outdated answer.
    – Lucky
    Mar 24, 2017 at 7:33
3

The same problem just happened to me. I thought that it was a problem in my scripts, but I checked google.com and the problem persisted. My problem was that I had updated my version of FF and kept the old version of FireBug. When I updated FireBug and everything was solved.

2

From firefox 49, the fire bug will be built in and it is called fire-bug next. So the fire bug add on won't work properly and no issues will be solved. So you can use firefox inspector. See here for details information

1

If the problem only shows up on a single page, check that your script folder is referenced from current folder (".") or that's reachable from the server root ("/").

<script src="./scripts/pagescripts.js" type="text/javascript"></script>

may not be the same as

<script src="/scripts/pagescripts.js" type="text/javascript"></script>
0

As mentioned, sometimes there's a Javascript syntax error that invalidates the whole script. But I have also had this, and simply opening up the page in a new tab or window and refreshing firebug (disable, enable) gets the javascript to show up again.

1
  • This works for me. That is, both the new tab technique and de-/reactivating. It seems pretty random when the problem appears, and to me it happens every now and then on domains for which I never activated Firebug. That case is somewhat complicated with redirection and authentication, but the external site does some kind of test and telling med that I do not have JS active, so I must press a button to proceed. Just thought I'd share my observations.
    – norwebian
    Mar 26, 2014 at 10:04
0

One time this caught me out was when I published one of my sites and I was checking it out. No Javascript was working, there were no errors in the console and firebug showed no scripts.

It turned out that in that instance, I'd forgotten to allow the site in NoScript - so there really were no scripts being loaded.

Not sure if that's the problem you're facing but it's worth being aware of.

0

I also got this error when attempting to use Ajax to a different server than the one serving up the page. JavaScript only allows Ajax access to the server that served up the page.

0

This problem is STILL happening (Aug 2015) with Firefox 39.0.3 and Firebug 2.0.11

For people saying the code is wrong or missing end tags etc. all I did to get all the javascript to reappear in tab was to shut down Firefox and restart it. I didn't change anything. Also that "Clear Activation List" option didn't work (no idea what that means)

0

I upvoted @Tom_Thomson's answer above, but I am wondering if simply removing and then reinstalling the Firebug add-on might not have accomplished the same thing without losing all the other stuff like bookmarks.

1
  • Actually, @Tom_Thomson's answer sits below now :-) Aug 12, 2015 at 17:53
0

FWIW this problem is still happening in August 2016. I'm using Firebug 2.0.17 with Firefox Dev Edition 50.0a2.

As a workaround, I'm able to use the Developer Tools, though they are not as robust as Firebug (when it's working).

1
  • I'm afraid the problem is here to stay. Firebug doesn't seem to work right with Firefox 50 and is likely never to be fixed.
    – jahu
    Nov 30, 2016 at 14:48
0

Well Firefox native Inspector is good... I know that you will miss some things, but in general we can survive with it. The good news is... less one addon, FF will be faster :)

1
  • Not enough.. There is no event inspection on DOM element - main reason why I don't use build-in inspector.
    – l00k
    Jan 23, 2017 at 9:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.