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 -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
