Thank you for considering helping me debug a problem with It's All Text!.
This document will help you set up debugging and then remove it once you're done. You'll probably want to undo some of the debugging when you finish because it slows down Firefox. Unless you debug regularly (you're a web or extension developer) you probably don't need these tools day-to-day.
You may want to save a copy of this document to disk or open it in a different browser so you can read it while you're restarting and debugging Firefox.
You'll also want a text editor or a new open email to collect any interesting information.
You may want to set up a new profile. A profile is all your personal settings for Firefox -- the extensions, bookmarks, preferences, etc.
There are several advantages to setting up a new profile for debugging IAT:
- You won't change your normal settings.
- Cleanup is easy, just switch profiles back to your normal profile.
- It makes debugging problems caused by extensions interacting with IAT possible without destroying your day-to-day profile.
- You start with default settings for your platform.
If this sounds good to you, then go read the managing profiles article in the Mozilla knowledge-base.
Once you've set up a new debugging profile and are running it by restarting Firefox and activating that profile you'll want to go install the version of It's All Text! you'll be debugging. You should have either gotten an .xpi
file directly from Christian Höltje or you can get any previously released version from Addons.Mozilla.Org.
The TL;DR version is to run the following command (for Windows and Linux only, alas):
firefox -ProfileManager
This is the easiest method of debugging. It involves turning on debugging in It's All Text! and opening the Error Console. Unfortunately, it returns the least amount of info unless IAT itself is crashing someplace.
- Go to the URL
about:config
- In the "filter" box, type
itsalltext.debug
- Double-click on "false" in the "value" column so that it says "true"
You open the Error Console via CTRL+SHIFT+J.
- Verify that it is set to show "all" errors, messages, etc. Click the "all" tab/button.
- Check the Error Console for any errors from It's All Text! during startup. If there are any, then you should copy and paste them into your notes and mark them as start-up errors.
- Clear the console. This is to make finding subsequent problems easier.
If you're debugging "normal usage" of IAT, then you can go to [http://docwhat.org/files/iat] and walk through those tests one by one.
After each step check your Error Console and see if any errors from IAT have appeared and make a note of them. It's okay to record too much, we can clean up the info later.
You may want to clear the Error Console regularly to make finding new messages easier.
You can email the notes, reply to an existing email, or append your notes to an issue on github.
If you didn't use a new profile, you'll want to turn debugging back off in about:config
.
This is a little more involved but still not very difficult.
Go to the firebug webpage and install the latest version of Firebug.
See the section for level 1
See the section for level 1
- Click the Firebug icon in the upper right corner.
- Click on the "Console" tab in the new frame that opened up.
Make sure you have the Firebug console open.
If you're debugging "normal usage" of IAT, then you can go to [http://docwhat.org/files/iat] and walk through those tests one by one.
After each step check your Error Console and the Firebug Console and see if any errors from IAT have appeared. Make note of any that do appear. It's okay to record too much, we can clean up the info later.
You may want to clear the Error Console and the Firebug Console regularly to make finding new messages easier.
Note that messages in Firebug aren't just errors. It shows a lot of details about what IAT is doing behind the covers.
You can email the notes, reply to an existing email, or append your notes to an issue on github.
If you didn't use a new profile, then you'll want to uninstall Firebug and turn off debugging in about:config
This is a somewhat complicated form of debugging and I'll assume you're pretty comfortable with Firefox, your operating system, etc.
WARNING: You will definitely want to set up a new profile in this case.
'nuf said.
Follow the instructions for setting up extension development environment.
You need to run Firefox from a terminal so that you can see the output. You may also want to redirect this output to a file. For example, on a Unix system you can use tee
for this if your operating system supports it.
You'll now have three sources of information:
- The Error Console
- The Firebug Console
- The output from running Firefox
If you're debugging "normal usage" of IAT, then you can go to [http://docwhat.org/files/iat] and walk through those tests one by one.
After each step check your Error Console and the Firebug Console and see if any errors from IAT have appeared. Make note of any that do appear. It's okay to record too much, we can clean up the info later.
You may want to clear the Error Console and the Firebug Console regularly to make finding new messages easier.
Note that messages in Firebug aren't just errors. It shows a lot of details about what IAT is doing behind the covers.
You can email the notes, reply to an existing email, or append your notes to an issue on github.
If you didn't use a new profile, then you'll want to uninstall Firebug and turn off debugging in about:config
If you're proficient enough to do this, I won't need to explain too much to you. I'd recommend following the setup steps for Level 3 debugging.
You'll also want to install Venkman, even if you use Firebug to do JS debugging.
Since you are knowledgable enough to be using a debugger, I assume you'll figure out how to continue from here.
The latest source (and tagged releases) are all on github.
You can contact me via email or via IM or IRC. See my homepage for my "Alter Egos" (in the sidebar) to find a way to talk to me directly.