Media Debugging Tips: Difference between revisions

m
nits
(added xpcom step)
m (nits)
Line 83: Line 83:
'''Generating a Firefox Profile with logs'''
'''Generating a Firefox Profile with logs'''
<br/>
<br/>
# Launch Firefox using a clean profile via about:profiles
# Launch Firefox using a clean profile via about:profiles.
# In the browser, open a tab and view about:config
# In the browser, open a tab and view about:config.
# enter ''media.gmp.use-minimal-xpcom'' and set this pref to <b>True</b>
# Enter <b>media.gmp.use-minimal-xpcom</b> in the upper edit, select the corresponding pref below, and set the pref value to <b>True</b>.
# Close the about:config tab, restart the browser
# Close the about:config tab, restart the browser.
# Launch Firefox again using the same profile.
# Launch Firefox again using the same profile.
# In the browser, open a tab and view about:logging
# In the browser, open a tab and view about:logging.
# Add 'timestamp,sync,GMP:5,EME:5' to the media preset 'new log modules' text and click on 'Set Log Modules'
# Add 'timestamp,sync,GMP:5,EME:5' to the media preset 'new log modules' text and click on 'Set Log Modules'.
# Under Output choose 'Logging to the Firefox Profiler' and check the 'Enable stack traces for log messages' checkbox.
# Under Output choose 'Logging to the Firefox Profiler' and check the 'Enable stack traces for log messages' checkbox.
# In about:logging, click the 'Start Logging' button.
# In about:logging, click the 'Start Logging' button.
Line 99: Line 99:


'''Generating text based logs in a local folder'''  
'''Generating text based logs in a local folder'''  
# Launch Firefox using the clean profile set up prior via about:profiles.
# In the browser, open a tab and view about:config.
# Enter <b>media.gmp.use-minimal-xpcom</b> in the upper edit, select the corresponding pref below, and set the pref value to <b>True</b>.
# Open a command line console and browse to the install location for Firefox Nightly.
# Open a command line console and browse to the install location for Firefox Nightly.
# On Windows, enter 'set MOZ_DISABLE_GMP_SANDBOX=1'(return)
# On Windows, enter 'set MOZ_DISABLE_GMP_SANDBOX=1'(return).
# Launch Firefox using a clean profile from the command console (firefox.exe (return) or firefox.exe -p (return))
# Launch Firefox from the command console using the clean profile you set up prior (firefox.exe -p ''profilename'' (return)).
# In the browser, open a tab and view about:logging
# In the browser, open a tab and view about:logging.
# Enter 'timestamp,sync,GMP:5,EME:5' in the 'new log modules' text edit and click on 'Set Log Modules'
# Enter 'timestamp,sync,GMP:5,EME:5' in the 'new log modules' text edit and click on 'Set Log Modules'.
# Select the 'Logging to a file' radio button
# Select the 'Logging to a file' radio button.
# Choose an appropriate path for log output.<br/>Note, on Windows, change any default 'AppData\Local\' path to a 'AppData\LocalLow\' path so that content processes can access the file system. For example:<br/>C:\Users\(username)\AppData\LocalLow\Temp\emelogs
# Choose an appropriate path for log output.<br/>Note, on Windows, change any default 'AppData\Local\' path to a 'AppData\LocalLow\' path so that content processes can access the file system. For example:<br/>C:\Users\(username)\AppData\LocalLow\Temp\emelogs
# Click the 'Set Log File' button.
# Click the 'Set Log File' button.
Confirmed users
1,982

edits