简体   繁体   English

Firefox Add-on Builder扩展调试

[英]Firefox Add-on Builder extension debugging

Hello I am using Firefox Add-on Builder for Firefox extensions. 您好,我正在使用Firefox扩展的Firefox附加组件生成器。 I am trying some basic code examples from their page, but I have a problem with logging simple text. 我正在尝试从他们的页面上获取一些基本的代码示例,但是我在记录简单文本时遇到了问题。

Firebug doesn't work as I read through Google, people recommended Firefox error console, but it gives me an errors instead of "text" from console.log. 人们建议使用Firefox错误控制台,因为在我阅读Google时,Firebug无法正常工作,但是它给了我一个错误,而不是console.log中的“文本”。

Please check this image: http://i.imgur.com/Z9biG3y.png 请检查这张图片: http : //i.imgur.com/Z9biG3y.png

I really need to somehow see what console.log returns for debugging purposes, otherwise I cannot make my extension :( 我真的需要以某种方式查看console.log返回的内容以进行调试,否则我无法进行扩展:(

console.log only works using the Add-on SDK. console.log仅适用于附加SDK。 There are various logging levels, but only console.error('message goes here') will show up in the regular browser error console screen that you have shown. 日志记录级别有所不同,但是console.error('message goes here')显示的常规浏览器错误控制台屏幕中,只会显示console.error('message goes here')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM