简体   繁体   中英

Firefox Add-on Builder extension debugging

Hello I am using Firefox Add-on Builder for Firefox extensions. 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.

Please check this image: 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 only works using the Add-on 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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