How to get trace output from PPAPI content debugger Flash Player

耗尽温柔 提交于 2019-11-29 00:29:48
akmozo

After creating your mm.cfg file into "%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash/System", you should restart chrome and then run your swf file, your log file will be created here : "%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash/WritableRoot/Logs" and it's named flashlog.txt. If the path WritableRoot/Logs didn't exist, it will be created automatically.

So to recap all that for the debugger version of the PPAPI Flash Player on Chrome and Opera on Windows 7/8 :

Windows 7/8 PPAPI

mm.cfg :

TraceOutputFileEnable=1
ErrorReportingEnable=1

mm.cfg location :

Chrome :

"%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash/System"

Opera :

"%USERPROFILE%/AppData/Roaming/Opera Software/Opera Stable/Pepper Data/Shockwave Flash/System"

log file location :

Chrome :

"%USERPROFILE%/AppData/Local/Google/Chrome/User Data/Default/Pepper Data/Shockwave Flash/WritableRoot/Logs/flashlog.txt"

Opera :

"%USERPROFILE%/AppData/Roaming/Opera Software/Opera Stable/Pepper Data/Shockwave Flash/WritableRoot/Logs/flashlog.txt"  

Windows 7/8 NPAPI/ActiveX

mm.cfg location :

%USERPROFILE%

log file location :

"%USERPROFILE%/AppData/Roaming/Macromedia/Flash Player/Logs/flashlog.txt"

Mac Chrome PPAPI

mm.cfg location :

"/Users/%USERNAME%/Library/Application Support/Google/Chrome/Default/Pepper Data/Shockwave Flash/System/mm.cfg"

log file location :

"/Users/%USERNAME%/Library/Application Support/Google/Chrome/Default/Pepper Data/Shockwave Flash/WritableRoot/Logs/flashlog.txt"

Mac Chrome NPAPI (chrome NPAPI is deprecated, but this might also apply to other browsers like firefox)

mm.cfg location :

"/Library/Application Support/Macromedia/mm.cfg"

log file location :

"/Users/%USERNAME%/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt"

For more information, click here for how to edit the mm.cfg file and from here to know the log file location. WARNING - the log files locations in this documentation may not be up-to-date.

Hope all that can help.

This has been driving me crazy for a week, but I finally figured it out. I'm on a Mac, and I have several Chrome User Profiles - which is a critical detail. The mm.cfg and flashlog.txt files need to be in a different directory depending on which Chrome User Profile you use.

( Note: I manually created the ".../System/..." directory for mm.cfg myself )

Location of mm.cfg file (Mac):

"/Users/%USERNAME%/Library/Application Support/Google/Chrome/%Profile #%/Pepper Data/Shockwave Flash/System/mm.cfg"

Location of flashlog.txt (Mac):

"/Users/%USERNAME%/Library/Application Support/Google/Chrome/%Profile #%/Pepper Data/Shockwave Flash/WritableRoot/Logs/flashlog.txt"

I hope that helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!