Karsten D�sterloh wrote:
Dave Townsend aber hob zu reden an und schrieb:

So far in my early development efforts I have been using dump for debug output, but I was wondering if there was a way of logging information to the javascript console?


Well, yes, but: ;-)
You need to get the console service and put your messages there.

Instead of
        dump(asContent);
you'd use something like
        const ksCID_ConsoleService = "@mozilla.org/consoleservice;1";
        const koConsoleService =
Components.classes[ksCID_ConsoleService].getService(Components.interfaces.nsIConsoleService);
        koConsoleService.logStringMessage(asContent);

HTH,

Karsten

Marvelous, just what I was looking for, thanks.

Dave
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to