Skip to content

Instantly share code, notes, and snippets.

@singuerinc
Last active December 15, 2015 17:29
Show Gist options
  • Save singuerinc/5296967 to your computer and use it in GitHub Desktop.
Save singuerinc/5296967 to your computer and use it in GitHub Desktop.
Configure Flash Player logs
MM_DIR="/Library/Application Support/Macromedia"
LG_DIR="${HOME}/Library/Preferences/Macromedia/Flash Player/Logs"
sudo mkdir -vp $MM_DIR
# create config file
sudo touch "${MM_DIR}/mm.cfg"
# Write mm config
sudo echo 'ErrorReportingEnable=1\nTraceOutputFileEnable=1' | sudo tee "${MM_DIR}/mm.cfg"
# Create Flash Player logs directory
mkdir -pv $LG_DIR
# Create Flash Player logs file
touch "${LG_DIR}/flashlog.txt"
# Add test message
echo 'Flashlogs test' | tee "${LG_DIR}/flashlog.txt"
# Restart the browser (w/ Flash Player "Debug" version) and execute:
tail -f "${LG_DIR}/flashlog.txt"
@singuerinc
Copy link
Author

Download + Execute:

curl -L https://gist.github.com/singuerinc/5296967/raw/logs.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment