Reputation: 61
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:
about:config
setting extensions.firebug.filterSystemURLs
to false
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.
Upvotes: 6
Views: 4186
Reputation: 31
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.
Upvotes: 3