admin管理员组文章数量:1620369
在做WebRTC时,有时需要查看Chrome底层的Log。
我使用的是Chrome Canary,在如下位置
/Applications/Google Chrome Canary.app/Contents/MacOS
执行如下命令便可以打开更详细的Log
cd /Applications/Google\ Chrome\ Canary.app/Contents/MacOS
./Google\ Chrome\ Canary --enable-logging --v=1
日志的则在另一个位置,参见如下命令:
cd ~/Library/Application\ Support/Google/
ls
cd Chrome\ Canary
ls
tail -f chrome_debug.log
然后启动WebRTC测试,果然可以看到很多有用的信息。
从Stack Overflow上查到更多的位置:
- On Windows
The default location is in the local app data folder :
[Chrome] %LOCALAPPDATA%\Google\Chrome\User Data
[Chromium] %LOCALAPPDATA%\Chromium\User Data
- On MacOSX
In the Application Support folder :
[Chrome] ~/Library/Application Support/Google/Chrome
[Chromium] ~/Library/Application Support/Chromium
3. On Linux
In the ~/.config folder :
```sh
[Chrome Stable] ~/.config/google-chrome
[Chrome Beta] ~/.config/google-chrome-beta
[Chrome Dev] ~/.config/google-chrome-unstable
[Chromium] ~/.config/chromium
也可以改变日志目录(用户数据目录):
[Windows] chrome.exe --user-data-dir=c:\foo
[Linux] google-chrome --user-data-dir=/path/to/foo
[Windows] chromium-browser --user-data-dir=c:\foo
[Linux] chromium-browser --user-data-dir=/path/to/foo
参见:
祝玩得开心。
版权声明:本文标题:查看Chrome底层Log 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1728811634a1174805.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论