JavaScript, Firefox and General Rants and Raves About Hacking the Interwebs

New Features in Firefox Developer Tools: Episode 24 hacks.mozilla.org/2013/07/new-fe… via @mozhacks
Network Monitor, now in #Firefox Beta:
https://hacks.mozilla.org/2013/06/network-monitor-now-in…
First video of a Firefox OS series is live:
http://christianheilmann.com/2013/06/21/first-video-of-a-firefox…
The state of Safari's Web Inspector:
https://www.webkit.org/blog/2518/state-of-web-inspector/
UK moves forwards with plans to imitate PRISM:
http://www.bbc.co.uk/news/uk-politics-22891845
The US is creating new laws to fight patent trolls:
http://blog.experts-exchange.com/ee-tech-news/the-president-takes…
Mozilla launches massive campaign against digital surveillance #stopwatchingus https://blog.mozilla.org/blog/2013/06/11…
Fluent 2013: Brendan Eich, "JavaScript at 18: Legal to Gamble"
http://www.youtube.com/watch?v=qrf9ONmtXbM
The application cache is no longer a douchebag!
http://flailingmonkey.com/application-cache-not-a-douchebag

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!

0

0

0