How to debug Thunderbird addon / incremental JavaScript

I want to create a Thunderbird 12 add-on. I wrote a simple JS function. (File: "chrome \ content \ myApp.js"). This file is called by the xul -onclick event. I packed my addon into a .xpi file and then I installed it. (Everything is fine, it works!)

Now I would like to debug my JS functions. But I can not find a working JS debugger. I tried these add-ons:

  • "Javascript Debugger" (0.9.89). Doesn't work: the thread does not stop at my breakpoints.
  • Firebug (1.7.2) + Chromebug (1.7.2). Doesn't work: I cannot enable the JS debugging tab. ( Update : I also cannot set / change the "context")
+5
source share
2 answers

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 .

+2
source

All Articles