{"json_modified": "2016-09-21T04:40:05.424660", "uuid": "f217b895-9778-4698-85ea-e4fd3557910e", "title": "Logging", "url": "/en-US/docs/Mozilla/Add-ons/SDK/Tutorials/Logging", "tags": ["Add-on SDK"], "translations": [{"uuid": "40d22e61-77eb-43f0-81b2-bbeae1cd8e1a", "title": "\u09b2\u0997\u09bf\u0982", "url": "/bn-BD/docs/Mozilla/Add-ons/SDK/Tutorials/Logging", "tags": [], "summary": "Technical review completed. Editorial review completed.", "localization_tags": [], "locale": "bn-BD", "last_edit": "2014-12-05T01:09:51", "review_tags": []}, {"uuid": "df51f8e1-b60e-4f8f-b98f-7841c7b355a6", "title": "Logging", "url": "/pt-BR/docs/Mozilla/Add-ons/SDK/Tutorials/Logging", "tags": ["Add-on SDK"], "summary": "O objeto DOM\u00a0console
\u00e9 \u00fatil para depura\u00e7\u00e3o do JavaScript. Porque os objetos DOM n\u00e3o est\u00e3o dispon\u00edveis para o c\u00f3digo principal do add-on, o SDK fornece seu pr\u00f3prio objeto global console
com a maiorira dos mesmos m\u00e9todos do do console
DOM, incluindo m\u00e9todos para registrar erros, avisos, ou mensagens informativas. Voc\u00ea n\u00e3o tem que usar\u00a0require()
qualquer coisa para conseguir acesso ao console. Ele est\u00e1 dispon\u00edvel para voc\u00ea.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2015-07-31T13:25:11", "review_tags": []}, {"uuid": "c811b8c5-f2bc-45e8-8366-c092491d8dcd", "title": "\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435)", "url": "/ru/docs/Mozilla/Add-ons/SDK/Tutorials/%D0%9F%D1%80%D0%BE%D1%82%D0%BE%D0%BA%D0%BE%D0%BB%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5", "tags": ["\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435", "\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435"], "summary": "\u041a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u043b\u044f DOM-\u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 JavaScript. \u0422\u0430\u043a \u043a\u0430\u043a DOM-\u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f (add-on), \u0442\u043e SDK \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442
\"\u043a\u043e\u043d\u0441\u043e\u043b\u044c\" (console)
\u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e\u043c \u0442\u0430\u043a\u0438\u0445 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043a\u0430\u043a \u0438 \u0443 DOM-\u043a\u043e\u043d\u0441\u043e\u043b\u0438
, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0438\u0440\u0432\u043e\u0430\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a (error), \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 (warning) \u0438\u043b\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f require()
. \u041e\u043d\u0430 \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.", "localization_tags": [], "locale": "ru", "last_edit": "2016-09-21T04:40:01", "review_tags": []}, {"uuid": "52a2449c-3a6a-41b4-b3ea-1916609db0b0", "title": "\u65e5\u5fd7", "url": "/zh-CN/docs/Mozilla/Add-ons/SDK/Tutorials/%E6%97%A5%E5%BF%97", "tags": [], "summary": "DOM console \u5bf9\u8c61\u5bf9\u8c03\u8bd5 Javascript \u975e\u5e38\u6709\u5e2e\u52a9\u3002\u4f46\u662f\u7531\u4e8e\u6269\u5c55\u7a0b\u5e8f\u65e0\u6cd5\u8bbf\u95ee DOM \u5bf9\u8c61\uff0csdk \u63d0\u4f9b\u4e86\u4e00\u4e2a\u62e5\u6709\u5927\u90e8\u5206 DOM console \u5bf9\u8c61\u65b9\u6cd5\u7684\u5168\u5c40 console \u5bf9\u8c61\uff0c\u5305\u62ec\u6253\u5370\u9519\u8bef\u65e5\u8f66\u3001\u8b66\u544a\u548c\u6570\u636e\u4fe1\u606f\u7684\u65b9\u6cd5\u3002\u4f60\u65e0\u9700 require() \u4efb\u4f55\u6a21\u5757\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 console \u5bf9\u8c61\u3002", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2016-04-27T08:39:30", "review_tags": []}], "modified": "2016-01-15T10:39:48", "label": "Logging", "localization_tags": [], "locale": "en-US", "id": 86021, "last_edit": "2016-01-15T10:39:47", "summary": "The DOM console
object is useful for debugging JavaScript. Because DOM objects aren't available to the main add-on code, the SDK provides its own global console
object with most of the same methods as the DOM console
, including methods to log error, warning, or informational messages. You don't have to require()
anything to get access to the console. It is automatically made available to you.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "console_in_Content_Scripts", "title": null}, {"id": "console_Output", "title": null}, {"id": "Learning_More", "title": "Learning More"}], "slug": "Mozilla/Add-ons/SDK/Tutorials/Logging", "review_tags": []}