Debugging Thunderbird using Firefox Developer Tools

作者: admin 分类: 二次开发 发布时间: 2014-06-20 15:16 ė6,962 浏览数 6没有评论
文章转自王牌软件
站长推荐:NSetup一键部署软件
一键式完成美化安装包制作,自动增量升级,数据统计,数字签名。应对各种复杂场景,脚本模块化拆分,常规复杂的脚本代码,图形化设置。无需专业的研发经验,轻松完成项目部署。(www.nsetup.cn)

http://flailingmonkey.com/debugging-thunderbird-using-firefox-developer-tools

I recently discovered that it is possible to use Firefox Developer Tools with Thunderbird. Philipp Kewisch has done a fantastic job of his Google Summer of Code 2013 Project to bring Firefox Developer Tools to Thunderbird.

Starting with Thunderbird 24.0a1 and a matching version of Firefox, it is possible to debug Thunderbird code using Firefox Developer Tools. If your version of Thunderbird is 14.x then please go to “Help” > “About Thunderbird” and allow it to update.

For best results you should use the latest nightly versions of both Thunderbird and Firefox. At the very least the version numbers should match. Here is how to get things up and running using the latest nightlies:

Download the latest Thunderbird Nightly.
Start Thunderbird.
Select “Tools” > “Allow Remote Debugging.”
Thunderbird > Allow remote debugging
“Thunderbird” > “Allow remote debugging”
Download the same version of Firefox Nightly as you did Thunderbird.
Start Firefox.
Press Ctrl > Shift > K to open the toolbox.
Click the gear icon to open the developer tools options panel.
Check “Enable Chrome Debugging” and “Enable Remote Debugging” then click “Restart Now” if it appears.
Enable Chrome Debugging and Enable Remote Debugging options
Enable Chrome Debugging and Enable Remote Debugging options
Select “Web Developer” > “Connect…”
Choose localhost port 6000 and click “Connect.”
You will be presented with a set of available remote tabs and processes. For me they appeared as follows:

Available remote tabs and processes
Available remote tabs and processes
“Your Kobo Order Receipt” – the area in which the selected email is displayed. In this view the following did / did not work:
The console tab may work but was empty when I tested.
The inspector, debugger, style editor and profiler work just fine.
The network tab was empty.
“Message Summary” is the area in which email summaries are displayed when multiple messages are selected.
The console tab may work but was empty when I tested.
The inspector, debugger, style editor and profiler work just fine.
The network tab was empty.
“Main Process” – the main Thunderbird process. In this view the following did / did not work:
The console, debugger and profiler work fine.
The inspector and style editor and network tabs were empty.
Although not all of the tools work perfectly in all contexts at least you can now use the DevTools for extension development and to fix bugs.

Philipp says that the same code packaged as an extension could be used to enable the debug server from other XUL apps but it doesn’t look like he has uploaded the extension yet.

Something has been needed since Venkman development halted so now we have something there is no excuse, whether it is Thunderbird itself or an extension … go, get hacking!



只回答业务咨询点击这里给我发消息 点击这里给我发消息

学习日记,兼职软件设计,软件修改,毕业设计。

本文出自 学习日记,转载时请注明出处及相应链接。

本文永久链接: https://www.softwareace.cn/?p=830

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">


Ɣ回顶部

无觅相关文章插件,快速提升流量