Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Greasemonkey scripts in Firebug?

How to debug Greasemonkey scripts in Firebug?

I can't debug any Greasemonkey scripts in Firebug because they don't appear in the list under the Script tab (anymore).

The answers at "How to debug Greasemonkey script with the Firebug extension?" apparently don't work with the latest versions of Firefox + Firebug?

I've tried:

  • Creating a new Firefox profile
  • about:config setting extensions.firebug.filterSystemURLs to false
  • Updating to Firebug 2.0.2

I had this problem before and solved it by creating a new Firefox profile but that hasn't worked this time. Please does anyone know how to get this working or if there is an alternative to Firebug that works with Greasemonkey?

I'm on Firefox 31.0.

like image 333
user3759830 Avatar asked Jul 31 '14 10:07

user3759830


1 Answers

Issue 7513: 2.0 cannot debug userscripts in Greasemonkey

Firebug 1.x works with Greasemonkey 1.x well, while I can debug userscripts installed in Greasemonkey using Firebug to set a breakpoint. But after I upgrade my Firefox to 30 and the Firebug was upgraded to 2.0. It seems does not work any more.

Project Member simon.lindholm10

Not that surprising, the method of script discovery changed pretty fundamentally in 2.0... Previously we were iterating over all scripts everywhere and trying to tie them somewhere, now we start from the web page and hook script creation for it, which is much more sane.

The way to get this fixed (presuming it doesn't work in the built-in debugger) is to file it against Devtools at https://bugzilla.mozilla.org, or against Greasemonkey; there's very little we can do on the Firebug side I believe.

like image 126
S-ed Avatar answered Oct 11 '22 15:10

S-ed