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
-- 
       Freiheit stirbt        |       Fsayannes SF&F-Bibliothek:
            Mit Sicherheit    |       http://fsayanne.tprac.de/
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to