[Pkg-mozext-commits] [itsalltext] 393/459: Rough draft of user debugging document.

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit 6be37b4d885b3f641f4f12dc86f1c715280173d4
Author: Christian Höltje <docwhat at gerf.org>
Date:   Wed Sep 21 14:01:38 2011 -0400

    Rough draft of user debugging document.
---
 DEBUGGING.md | 166 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 166 insertions(+)

diff --git a/DEBUGGING.md b/DEBUGGING.md
new file mode 100644
index 0000000..0e9adc7
--- /dev/null
+++ b/DEBUGGING.md
@@ -0,0 +1,166 @@
+# Debugging ...
+## ...or how to help the developer not lose his mind.
+
+Thank you for considering helping me debug a problem with [It's All Text!](http://github.com/docwhat/itsalltext).
+
+This document should help you set up debugging and then remove it once you're done.  You'll probably want to remove some of these debugging methods 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.
+
+## Preparation
+
+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 at text editor or an open email to collect any interesting information.
+
+### Setting up a new profile (optional)
+
+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:
+
+1. You won't change your normal settings.
+2. Cleanup is easy, just switch profiles back to your normal profile.
+3. It makes debugging problems caused by extensions interacting with IAT.
+4. You start with default settings for your platform.
+
+If this sounds good to you, then go read the [managing profiles article](http://support.mozilla.com/en-US/kb/Managing-profiles) in the Mozilla knowledge-base.
+
+Once you've set up a new debugging profile and are running it by restarting Firefox, then 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.Mozzilla.Org](https://addons.mozilla.org/en-US/firefox/addon/its-all-text/versions/).
+
+## Level 1 Debugging - Error Console
+
+This is the easiest method of debugging.  It involves turning on debugging in It's All Text! and opening the Error Console.
+
+### Turning on debugging in IAT
+
+1. Go to the URL `about:config`
+2. In the "filter" box, type `itsalltext.debug`
+3. Double-click on "false" in the "value" column so that it says "true"
+
+### Open the Error Console
+
+You open it via the menu item "Tools" -> "Web Developer" -> "Error Console"
+
+1. Verify that it is set to show "all" errors, messages, etc.  Click the "all" tab/button.
+2. 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.
+3. Clear the console. This is to make finding problems easier.
+
+### Debug
+
+What you do now depends on what you're debugging.
+
+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.  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 regularly to make finding new messages easier.
+
+### Send Christian Höltje your notes.
+
+You can [email](http://docwhat.org/email/) the notes, reply to an existing email, or append your notes to an [issue](http://github.com/docwhat/itsalltext/issues) on github.
+
+### Teardown
+
+If you didn't use a new profile, you'll want to turn debugging back off in `about:config`.
+
+## Level 2 Debugging - Firebug
+
+This is a little more involved but still not very difficult.
+
+### Install Firebug
+
+Go to the [firebug webpage](http://getfirebug.com/) and install the latest version of Firebug.
+
+### Turning on debugging in IAT
+
+1. Go to the URL `about:config`
+2. In the "filter" box, type `itsalltext.debug`
+3. Double-click on "false" in the "value" column so that it says "true"
+
+### Open the Error Console
+
+You open it via the menu item "Tools" -> "Web Developer" -> "Error Console"
+
+1. Verify that it is set to show "all" errors, messages, etc.  Click the "all" tab/button.
+2. 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.
+3. Clear the console. This is to make finding problems easier.
+
+### Open the Firebug console
+
+1. Click the Firebug icon in the upper right corner.
+2. Click on the "Console" tab in the new frame that opened up.
+
+### Debugging
+
+Make sure you have the Firebug console open.  
+
+What you do now depends on what you're debugging.
+
+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.
+
+### Send Christian Höltje your notes.
+
+You can [email](http://docwhat.org/email/) the notes, reply to an existing email, or append your notes to an [issue](http://github.com/docwhat/itsalltext/issues) on github.
+
+### Teardown
+
+If you didn't use a new profile, then you'll want to uninstall Firebug and turn off debugging in `about:config`
+
+## Level 3 Debugging - Firefox logging
+
+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.
+
+### Do the steps for level 1 and 2.
+
+'nuf said.
+
+### Setup a "Developer Environment"
+
+Follow the instructions for [setting up extension development environment](https://developer.mozilla.org/en/Setting_up_extension_development_environment).
+
+### Run Firefox
+
+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.  You can use `tee` for this if your operating system supports it.
+
+### Debugging
+
+You'll now have three sources of information:
+
+* The Error Console
+* The Firebug Console
+* The output from running Firefox
+
+What you do now depends on what you're debugging.
+
+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.
+
+### Send Christian Höltje your notes.
+
+You can [email](http://docwhat.org/email/) the notes, reply to an existing email, or append your notes to an [issue](http://github.com/docwhat/itsalltext/issues) on github.
+
+### Teardown
+
+If you didn't use a new profile, then you'll want to uninstall Firebug and turn off debugging in `about:config`
+
+### Level 4 -- Debugging with a debugger
+
+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](https://developer.mozilla.org/en/Venkman), even if you use Firebug to do JS debugging.
+
+## Getting Help
+
+You can contact me via [email](http://docwhat.org/email/) or via IM or IRC.  See [my homepage](http://docwhat.org/) for my "Alter Egos" (in the sidebar) to find a way to talk to me directly.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list