firefox-devel.rst
changeset 876 91658c72d15f
parent 875 ce06c05f5f4b
child 879 77619a223f34
equal deleted inserted replaced
875:ce06c05f5f4b 876:91658c72d15f
   122 
   122 
   123 All messages go to native console. On Windows this require '-console' option for 'firefox.exe'.
   123 All messages go to native console. On Windows this require '-console' option for 'firefox.exe'.
   124 
   124 
   125   https://developer.mozilla.org/en/DOM/window.dump
   125   https://developer.mozilla.org/en/DOM/window.dump
   126 
   126 
   127 * Components.utils.reportError.
   127 ** Components.utils.reportError.
   128 
   128 
   129 Write error msg to Error console (not in Web Console).
   129 Write error msg to Error console (not in Web Console).
   130 
   130 
   131   Components.utils.reportError("msg");
   131   Components.utils.reportError("msg");
   132   // Show the error console.
   132   // Show the error console.
   133   toJavaScriptConsole();
   133   toJavaScriptConsole();
   134 
   134 
       
   135 Firefox 3.x require set preference 'javascript.options.showInConsole' to 'true' which is
       
   136 default value fro Firefox 4.x.
       
   137 
   135   https://developer.mozilla.org/en/Components.utils.reportError
   138   https://developer.mozilla.org/en/Components.utils.reportError
   136 
   139