Debugging a XULRunner Application
https://developer.mozilla.org/ja/docs/Debugging_a_XULRunner_Application
pref("browser.dom.window.dump.enabled", true)
dump("my text here\n");
function jsdump(str)
{
Components.classes['@mozilla.org/consoleservice;1']
.getService(Components.interfaces.nsIConsoleService)
.logStringMessage(str);
}
xulrunner.exe /path/to/application.ini -jsconsole
xulrunner.exe /path/to/application.ini -console
0 件のコメント:
コメントを投稿