Unfortunately, there is no such thing as a decent debugger for chrome (addons) javascript. Chromebug has been abandoned for a long time, venkman is not working, the authors of the addon are a bit stuck there. The new JSD2 debugging API works in Mozilla, but it looks from a wiki that focuses mainly on javascript content (web page) rather than chrome (add-ons) javascript, at least not in the short term.
Fortunately, a very recent attempt seems to have paid off: now there is a way to easily execute small javascript fragments in a decent console-like window. See http://mikeconley.ca/blog/2012/05/11/scratchpad-ported-to-thunderbird-kinda/ :) for more details .
source
share