Automated merge with file:///cygdrive/e/srv/hg/tips
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Jun 2011 11:06:49 +0300
changeset 881 0fe9ca6879d8
parent 879 77619a223f34 (diff)
parent 880 60bfe3e287eb (current diff)
child 882 7eee0fbd837e
Automated merge with file:///cygdrive/e/srv/hg/tips
emacs.rst
--- a/emacs.rst	Sat Jun 18 11:06:41 2011 +0300
+++ b/emacs.rst	Sat Jun 18 11:06:49 2011 +0300
@@ -177,8 +177,13 @@
   system-name               - host name of the machine you are running on
   system-time-locale
   system-type               - indicating the type of operating system you are using:
-                              'gnu' (GNU Hurd), 'gnu/linux', 'gnu/kfreebsd' (FreeBSD),
-                              'darwin' (GNU-Darwin, Mac OS X), 'ms-dos', 'windows-nt', 'cygwin'
+                              'gnu' (GNU Hurd),
+                              'gnu/linux',
+                              'gnu/kfreebsd', 'berkeley-unix' for (FreeBSD),
+                              'darwin' (GNU-Darwin, Mac OS X),
+                              'ms-dos',
+                              'windows-nt',
+                              'cygwin'
   system-uses-terminfo
   dynamic-library-alist or deprecated image-library-alist
                             - alist of image types vs external libraries needed to display them
--- a/firefox-devel.rst	Sat Jun 18 11:06:41 2011 +0300
+++ b/firefox-devel.rst	Sat Jun 18 11:06:49 2011 +0300
@@ -82,6 +82,20 @@
 
 * Debugin JavaScript in Firefox.
 
+// Logs errors in chrome files to the Error Console. Enable Components.utils.reportError().
+user_pref("javascript.options.showInConsole", true);
+// Disables the XUL cache so that changes to windows and dialogs do not require a restart.
+user_pref("nglayout.debug.disable_xul_cache", true);
+// Enables the use of the dump() statement to print to the standard console.
+user_pref("browser.dom.window.dump.enabled", true);
+// Enables strict JavaScript warnings in the Error Console.
+user_pref("javascript.options.strict", true);
+// This enables to run JavaScript code snippets in the chrome context of the Scratchpad from the Tools menu.
+user_pref("devtools.chrome.enabled", true);
+// This will send more detailed information about installation and update problems to the Error Console.
+user_pref("extensions.logging.enabled", true);
+user_pref("dom.report_all_js_exceptions", true);
+
 ** Debugging JavaScript in Firefox with Web Console.
 
 'console.log()', 'console.info()', 'console.warn()', 'console.error()'.
@@ -106,5 +120,33 @@
 
 Set in 'about:config' 'browser.dom.window.dump.enabled' to 'true'.
 
-All messages go to Web console.
+All messages go to native console. On Windows this require '-console' option for 'firefox.exe'.
+
+  https://developer.mozilla.org/en/DOM/window.dump
+
+** Components.utils.reportError.
+
+Write error msg to Error console (not in Web Console).
+
+  Components.utils.reportError("msg");
+  // Show the error console.
+  toJavaScriptConsole();
+
+Firefox 3.x require set preference 'javascript.options.showInConsole' to 'true' which is
+default value fro Firefox 4.x.
 
+  https://developer.mozilla.org/en/Components.utils.reportError
+
+* Native Firefox debugging.
+
+** Adding symbols from Symbol Server.
+
+Execute in WinDbg:
+
+  .sympath SRV*c:\symcache\*http://msdl.microsoft.com/download/symbols;SRV*c:\symcache\*http://symbols.mozilla.org/firefox
+
+or Ctrl+S and add:
+
+  SRV*c:\symcache\*http://msdl.microsoft.com/download/symbols;SRV*c:\symcache\*http://symbols.mozilla.org/firefox
+
+  https://developer.mozilla.org/en/Using_the_Mozilla_symbol_server
--- a/windows-devel.rst	Sat Jun 18 11:06:41 2011 +0300
+++ b/windows-devel.rst	Sat Jun 18 11:06:49 2011 +0300
@@ -66,6 +66,23 @@
 
   !analyze -v
 
+** Adding symbols from Symbol Server.
+
+Execute in WinDbg:
+
+  .sympath SRV*D:\srv\symcache*http://msdl.microsoft.com/download/symbols
+
+or Ctrl+S and add:
+
+  SRV*D:\srv\symcache*http://msdl.microsoft.com/download/symbols
+
+  http://support.microsoft.com/kb/311503
+                Use the Microsoft Symbol Server to obtain debug symbol files
+
+** Using the SymChk.exe utility to download symbols.
+
+  symchk /r c:\windows\system32 /s SRV*c:\symbols\*http://msdl.microsoft.com/download/symbols
+
 * Running at startup.
 
   HKCU\Software\Microsoft\Windows\CurrentVersion\Run