开发者

How to get Chromebug to ouput logging messages to Chromebug console while debuging Firefox Extension

开发者 https://www.devze.com 2023-01-30 04:59 出处:网络
I\'m new to both javascript and firefox extension writing so I need a really explicit answer. I\'m writing a firefox extension that will inspect and modify GET requests from the browser before the pa

I'm new to both javascript and firefox extension writing so I need a really explicit answer.

I'm writing a firefox extension that will inspect and modify GET requests from the browser before the page is loaded. I need to debug my code and installed matching versions of Chromebug and Firebug (1.7.0a7).

What do I need to put into my extensions javascript code to get it to output to the chromebug log. I tried Chromebug.Console.log("message here") and Firebug.Console.log("message here") and neither output to the chromebug console.

How is logging d开发者_C百科one for firefox extensions?


I have never worked with Chromebug, but you can log to Firefox's error console by using

    Application.console.log("I'm a log message");

This may help until you get Chromebug running. In addition, there's Venkman the Javascript debugger.


I can't figure it out either. I created an issue at http://code.google.com/p/fbug/issues/detail?id=4256. Maybe vote for it there.

Note as I describe there you can get it to work by typing something in the Chromebug console.

Another alternative is to use FBTrace, but getting console figured out would be better :)


This may have been solved. For anyone interested... As far as I can tell, after 1.7.2 console.log works just fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消