Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can cause a persistent "Reload the page to get source for" error in firebug?

I'm trying to debug the javascript of a specific page, and I keep seeing

Reload the page to get source for page.htm in Firebug.

On Chrome, I'm mostly able to debug the js, but sometimes I also get a blank page. What can cause such issues?

I believe I always see a blank page in Chrome if I reload while the JS console is open. If I open a new Chrome tab, load the page, and then open the JS console, everything is ok.

The page I'm debugging is on a localhost server (Play Framework server), although I have seen this on other pages occasionally. This only happens with inline javascript ... js that is linked from the page is displayed fine.

like image 663
ripper234 Avatar asked Dec 13 '11 08:12

ripper234


2 Answers

With firebug icon, you'll see a dropdown arrow. Click that arrow to open up the drop down menu.

enter image description here

Click Clear Activation List.

Refresh the page now.

Now under script tab you'd see the Reload link. Click that to reload the page again. This time when the page reloads, you'd see the script.

like image 197
Adil Malik Avatar answered Nov 10 '22 03:11

Adil Malik


I have tried all the answers described here, but for me the issue was something else.

I got the same message "Reload to see all sources" in firebug, and the Chrome debugger didn't display anything in the sources tab as well. I saw that the debugger was working on other pages for my website, so the problem was the page itself and after hours of sequentially deleting everything I had in the page, all that remained was an 'img' tag.

    <img src="#" />

It seems the src attribute should not contain "#", perhaps someone with a deeper understanding of HTML could explain this, but removing it has solved the problem for me.

Hopefully this will be of use to someone else as well.

like image 4
florinszilagyi Avatar answered Nov 10 '22 03:11

florinszilagyi