mozilla

Revision 505719 of Logging Multi-Process Plugins

  • Revision slug: Mozilla/Add-ons/Plugins/Logging
  • Revision title: Logging Multi-Process Plugins
  • Revision id: 505719
  • Created:
  • Creator: wbamberg
  • Is current revision? Yes
  • Comment 4 words addedPlugins/Logging Mozilla/Add-ons/Plugins/Logging

Revision Content

When multi-process plugins are enabled, Firefox has the ability to dump additional information about interactions between the browser and a plugin. This is done using NSPR logging. Run Firefox in a custom environment to enable this special logging mode.

Make sure you have write permissions to wherever you wish to save the log. Your safest bet is your home directory (C:\Users\username on Windows Vista and above, C:\Documents and Settings\username on Windows XP, and ~ (home directory) on Mac OS X and Linux).

Windows

Make sure Firefox is not running. From within a command prompt:

C:\> set NSPR_LOG_MODULES=IPCPlugins:5
C:\> set NSPR_LOG_FILE=c:\plugins.log
C:\> cd C:\Program Files\Mozilla Firefox
C:\> firefox.exe

The log file will be saved to C:\plugins.log (or wherever NSPR_LOG_FILE is set).

Linux

Make sure Firefox is not running. From within a bash shell:

$ export NSPR_LOG_MODULES=IPCPlugins:5
$ export NSPR_LOG_FILE=~/plugins.log
$ /usr/bin/firefox 

The file will be saved to ~/plugins.log (or wherever NSPR_LOG_FILE is set).

Revision Source

<p>When multi-process plugins are enabled, Firefox has the ability to dump additional information about interactions between the browser and a plugin. This is done using <a class=" external" href="http://www.mozilla.org/projects/nspr/reference/html/prlog.html" title="http://www.mozilla.org/projects/nspr/reference/html/prlog.html">NSPR logging</a>. Run Firefox in a custom environment to enable this special logging mode.</p>
<p>Make sure you have write permissions to wherever you wish to save the log. Your safest bet is your home directory (<code>C:\Users\username</code> on Windows Vista and above, <code>C:\Documents and Settings\username</code> on Windows XP, and <code>~</code> (home directory) on Mac OS X and Linux).</p>
<h3 id="Windows">Windows</h3>
<p>Make sure Firefox is not running. From within a command prompt:</p>
<pre><span style="color: rgb(153, 153, 153);">C:\&gt;</span> set NSPR_LOG_MODULES=IPCPlugins:5
<span style="color: rgb(153, 153, 153);">C:\&gt;</span> set NSPR_LOG_FILE=c:\plugins.log
<span style="color: rgb(153, 153, 153);">C:\&gt;</span> cd C:\Program Files\Mozilla Firefox
<span style="color: rgb(153, 153, 153);">C:\&gt;</span> firefox.exe
</pre>
<p>The log file will be saved to <code>C:\plugins.log</code> (or wherever NSPR_LOG_FILE is set).</p>
<h3 id="Linux">Linux</h3>
<p>Make sure Firefox is not running. From within a bash shell:</p>
<pre><span style="color: rgb(153, 153, 153);">$</span> export NSPR_LOG_MODULES=IPCPlugins:5
<span style="color: rgb(153, 153, 153);">$</span> export NSPR_LOG_FILE=~/plugins.log
<span style="color: rgb(153, 153, 153);">$</span> /usr/bin/firefox 
</pre>
<p>The file will be saved to ~/plugins.log (or wherever NSPR_LOG_FILE is set).</p>
Revert to this revision