Advanced Google Chrome Logging

tldr;

Run in terminal:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-logging --v=1&
tail -f ~/Library/Application\ Support/Google/Chrome/chrome_debug.log

If you are wondering how to know just about everything that Google Chrome is doing, you can enable verbose logging to a file. If you are running on a Mac, you can follow similar steps to launch Google Chrome in verbose logging mode.

  • Make sure Google Chrome is not already running
  • Open Terminal
  • Find path to Google Chrome that most closely resembles the following

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome

  • Once verified, launch Google chrome with verbose logging flag by running verified path with flags

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-logging --v=1

  • Find logging file, chrome_debug.log,┬áthat most likely lives at

~/Library/Application\ Support/Google/Chrome

  • Watch the file for updates using tail or some other application

tail -f ~/Library/Application\ Support/Google/Chrome/chrome_debug.log

This is using Google Chrome version 21

Google Chrome Logging

Google Chrome Logging

 

Google Chrome logging to Terminal

Google Chrome logging to Terminal

Web Resources:

http://www.chromium.org/for-testers/enable-logging
http://peter.sh/experiments/chromium-command-line-switches/
http://superuser.com/q/157484/2861

MikeGrace: A 25 year old Geek that loves his wife and enjoys tech, photography, outdoors, and his motorcycle.

Discussion