Zotero.debug() won't work if you try to pass it DOM objects or other
objects with recursive structures, but it should display scalar values
and regular JS objects just fine. There's another function, safeDebug(),
that casts all values to strings and therefore won't recurse, so it's
safe to use on DOM objects, but it's not currently available from within
translators.
Also, Scaffold overrides Zotero.debug() with its own modified version,
so you won't see debug output in the console when you're running a
translator from Scaffold (but you should see it within Scaffold).
> In the following piece of code, I just tried to use it to see the
> contents of "i" to correct an error that read: "childNodes[0] has no
> properties" and to my surprise, the Zotero.debug has somehow solved
> the error.
>
Are you sure this is reproducible after a restart of Firefox? Neither
version of Zotero.debug() should have any effect on the value passed to it.