firebugmonkey working, some limitations

677 views
Skip to first unread message

reesd

unread,
Nov 9, 2010, 9:21:44 PM11/9/10
to greasemonkey-users
Hi All,
I thought I would share that I got FireBugMonkey (https://
addons.mozilla.org/en-US/firefox/addon/13623/) working to do basic
debugging of GreaseMonkey scripts thanks to some explanation in a
recent comment by f0rsvinn.

It never occurred to me that the way it works is by creating its own
sandbox around the script rather than using Greasemonkey's, you
actually have to turn GM off. There are some GM aspect things that
will not work though because the script really isn't in GreaseMonkey.
As an example, GM_getValue returns undefined.

Still, it works for basic debugging - and is way better than nothing.

Usage steps are as follows:
Install FireBug 1.5.4 (later versions do not seem to work)
Install FireBugMonkey
Use the Script Manager in FireBugMonkey to select the files you want
to debug
Disable GreaseMonkey (scripts will run inside FireBugMonkey, not
GreaseMonkey)
Enable FireBugMonkey
Enable scripts in FireBug

The scripts you added in the ScriptManager should be visible in the
FireBug scripts list!

I don't understand enough about how FireBug and/or GreaseMonkey work
to recognize what the difference is in FireBugMonkey's sandbox
approach, but maybe its worth looking at to see if it could just be
added to GM natively? Maybe as an eveloper option if it breaks
sandboxing?

Thanks,
d

gabriel munteanu

unread,
Nov 10, 2010, 3:11:21 AM11/10/10
to greasemon...@googlegroups.com
great news.
thanks.

> --
> You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
> To post to this group, send email to greasemon...@googlegroups.com.
> To unsubscribe from this group, send email to greasemonkey-us...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
>
>

--
jgabios
http://bash.editia.info

Reply all
Reply to author
Forward
0 new messages