[Pkg-mozext-commits] [perspectives-extension] 17/72: updated README for new debugging functionality in Aurora

David Prévot taffit at moszumanska.debian.org
Thu Dec 11 02:12:46 UTC 2014


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

taffit pushed a commit to branch master
in repository perspectives-extension.

commit 6814a9b54d811159b74a3d83d83278a4333292b7
Author: Gerold Meisinger <gerold.meisinger at gmail.com>
Date:   Tue Jun 24 22:14:20 2014 +0100

    updated README for new debugging functionality in Aurora
---
 README    | 56 ----------------------------------------------------
 README.md | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+), 56 deletions(-)

diff --git a/README b/README
deleted file mode 100644
index d15b4b4..0000000
--- a/README
+++ /dev/null
@@ -1,56 +0,0 @@
-Perspectives - Connect securely to https websites by checking certificates with network notaries.
-
-
-This directory includes the code for the Perspectives Firefox and Seamonkey clients.
-
-For more information see: http://www.perspectives-project.org
-
-
-CONTACT
-
-You can contact the developers on the Perspectives Dev newsgroup:
-
-https://groups.google.com/group/perspectives-dev
-perspectives-dev at googlegroups.com
-
-
-HACKING
-
-Requirements:
-- a POSIX command line environment
-- make
-- zip
-
-Optional (but strongly recommended!):
-- python and the python 'lxml' library (to run the build tests)
-
-
-To build, just type "make" (assuming of course you have make installed!). This will create a file called 'Perspectives.xpi'.  
-
-You can run Perspectives in Firefox using File -> Open and browsing to the Perspectives.xpi file.
-
-To debug the extension:
-
-* Edit the d_print_flags in plugin/chrome/content/common.js
-* Rebuild using make
-* Reload the extension and restart your browser
-* Use the Firefox extension 'Firebug' to view what's happening as Perspectives runs
-
-Feel free to try Venkman or other debug methods (cf. https://developer.mozilla.org/en/Setting_up_extension_development_environment )
-
-
-TESTING
-
-To test Perspectives:
-
-- Use 'make test' to build and install the Perspectives extension, as above
-- Open chrome://perspectives/content/test/test.html in your browser
-- Press the 'Run Tests' button
-
-Test results will be displayed on the page.
-
-
-Some tests are performed at build time - e.g. checking the localization files for the correct format and contents. All tests of the javascript code are run inside the extension - for security reasons they must be installed along with other extension files.
-
-If you have ideas for further tests please let us know!
-
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..c3f57b4
--- /dev/null
+++ b/README.md
@@ -0,0 +1,68 @@
+# Perspectives
+**Connect securely to https websites by checking certificates with network notaries.**
+
+This directory includes the code for the Perspectives Firefox and Seamonkey clients.
+For more information see: http://www.perspectives-project.org
+
+## DEVELOPMENT
+
+Requirements:
+* a POSIX command line environment
+* make
+* zip
+
+Optional (but strongly recommended!):
+* python and the python 'lxml' library (to run the build tests)
+
+
+To build, just type "make" (assuming of course you have make installed!). This will create a file called 'Perspectives.xpi'.
+
+You can run Perspectives in Firefox using *Menu -> Add-ons -> Extensions -> (Tools icon) -> Install Add-On From File* and open to the ```Perspectives.xpi``` file.
+
+To debug the extension:
+
+* Download the latest [Firefox Aurora build 31](https://www.mozilla.org/firefox/channel/#aurora).
+  * The latest version usually comes with better integration of debugging tools.
+  * **Build 32 is not supported** right now (see [issue #123](https://github.com/danwent/Perspectives/issues/123)).
+* Start your new browser with ```firefox31/firefox -P dev -no-remote -purgecaches &```
+  * You should see the profile manager on the first start which creates a new profile called "dev".
+  * For further information see [MDN - Setting up extension development environment](https://developer.mozilla.org/en/Setting_up_extension_development_environment).
+* In ```~/.mozilla/firefox/r4nd0m5tr.dev/extensions``` create a file called ```perspectives at cmu.edu``` and enter the text ```Path_to_your_Perspectives_clone/plugin/``` (where you cloned the git repo to).
+  * This enables you to see changes without having to rebuild with ```make``` everytime.
+  * Unfortunately you still have to restart the browser because Perspectives is not yet a "restartless extensions" (see [issue #76](https://github.com/danwent/Perspectives/issues/76)).
+* Enter ```about:config``` in the location bar and set the following variables:
+  * ```devtools.debugger.remote-enabled = true```
+  * ```devtools.chrome.enabled = true```
+  * This enables you to use the "Browser Toolbox" (debugger).
+  * For further information again see [MDN - Setting up extension development environment](https://developer.mozilla.org/en/Setting_up_extension_development_environment).
+* Restart the browser and open *Menu -> Developer -> Browser Toolbox -> Ok -> Debugger*
+  * Search for the file you want to debug (e.g. ```notaries.js```).
+  * Search for the code line you want to debug and set a breakpoint.
+* Edit the ```d_print_flags``` in ```plugin/chrome/content/common.js``` if you like to see some useful logs.
+* Optional tips if you want speed-up development a bit:
+  * If you just need console logs use *Menu -> Developer -> Browser Console* (```Ctrl + Shift + J```) instead of the "Browser Toolbox". The plain console loads a little faster (Note: "Browser Console" is not the standard "Javascript Console").
+  * Use the ```debugger``` keyword in Javascript to make the debugger automatically jump to the file and codeline. You need to have "Browser Toolbox" already open though!
+  * You can also move the *Developer menu* into the toolbar to skip one menu step.
+
+## TESTING
+
+To test Perspectives:
+
+* Use 'make test' to build and install the Perspectives extension, as above
+* Open chrome://perspectives/content/test/test.html in your browser
+* Press the 'Run Tests' button
+
+Test results will be displayed on the page.
+
+
+Some tests are performed at build time - e.g. checking the localization files for the correct format and contents. All tests of the javascript code are run inside the extension - for security reasons they must be installed along with other extension files.
+
+If you have ideas for further tests please let us know!
+
+## CONTACT
+
+You can contact the developers on the Perspectives Dev newsgroup:
+
+https://groups.google.com/group/perspectives-dev
+mailto:perspectives-dev at googlegroups.com
+

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



More information about the Pkg-mozext-commits mailing list