1
我有一個Firefox擴展名爲myjavascriptfile.js,由於我是新來這個插件的概念,只是我想調試這個script.So我使用下面的語句在這個文件中像我的日誌語句是在Mac上打印的嗎?
function LOG(text)
{
var consoleService = Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService);
consoleService.logStringMessage(text);
}
observe: function(subject, topic, data)
{
LOG("observe called ");
}
我知道這個觀察得到調用,但我不知道在哪裏看到我的日誌消息。有人告訴我它在哪裏打印? 請幫忙。
我明白了,非常感謝 – Akbar