English 中文(简体)
如何调试 Thunderbird 配对/ 扩展 s JavaScript
原标题:How to debug a Thunderbird addon/extension s JavaScript

我想开发一个 Thunderbird 12 adon。 我写了一个简单的 JS 函数 。 ( 文件 : “ chromecontentmyApp.js ” ) 。 此文件被一个 xul- on kick- event 调用 。 我将我的 adon 装成. xpi 文件, 然后安装了它 。 ( 一切正常, 一切正常! )

Now I d like to debug my JS functions. But I can t find a working JS Debugger. I have tried this addons:

  • "Javascript Debugger"(0.9.89). Not working: The thread doesn t stop at my breakpoints.
  • Firebug(1.7.2) + Chromebug(1.7.2). Not working: I can t enable the JS debug tab. (Update: I also can t set/change a "context")
最佳回答

不幸的是,没有像铬(addons) javascript这样的体面调试器。 Chromebug 已经被长期抛弃, venkman没有工作, addon 作者被困在那里。 名为 JSD2 的新调试API 正在Mozilla 的作品中, 但从< a href=> https://wiki.mozilla. org/ DevTools/ Features/Debugger' rel = “ no follow” >wiki 来看, 它主要针对内容( Webppage) javascript, 而不是铬(addons) javascript, 至少在短期内不是。

幸运的是,最近的一项努力似乎已经取得了成效:现在有了一种在像一个像样的控制台一样的窗口中执行简便的小刺刀的方法。见http://mikeconley.ca/blog/2012/05/11scratchpad-ported-to-thundbird- kinda/ ,详情如下:

问题回答

Happily we once again have a debugger for Thunderbird! You need a newer/nightly version, but hanks to Philipp Kewisch s summer of code project we can use the Firefox debugger to remotely debug Thunderbird. More details at the following links: http://kewisch.wordpress.com/2013/09/22/thunderbird-developer-tools-wrapup/ http://kewisch.wordpress.com/2013/06/13/the-thunderbird-remote-debugger-is-alive/ https://bugzilla.mozilla.org/show_bug.cgi?id=876636

如果您真的致力于TB12, 你可以在夜间调试,然后测试TB12。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签