How to capture runtime Chrome Browser logs

48 views
Skip to first unread message

appu s

unread,
Sep 5, 2022, 8:31:02 AM9/5/22
to ChromiumOS Development
Dear All,

I need to capture only runtime chrome browser logs & other debug steps to identifying the reason for Chrome Browser Crash

I enabled the below flags

echo "vmodule=media/gpu=4,components/arc/video_accelerator/=4,ui/display=4" >> /etc/chrome_dev.conf

Could you please let me know, now how can I capture Chrome Browser logs during runtime or the debug steps to identifying the reason for Chrome Browser Crash.

Kindly do the needful,

Many thanks in advance.

Harry Cutts

unread,
Sep 5, 2022, 12:27:30 PM9/5/22
to ChromiumOS Development, appusha...@gmail.com
You can find the logs for the browser in one of a few different places, described in the Chrome Logging on ChromeOS page. Assuming you're not using a test image and have logged in, you should look in /home/chronos/user/log/chrome.

Also, according to that page you need to add -- before vmodule (echo "--vmodule=...").

appu s

unread,
Sep 5, 2022, 1:17:15 PM9/5/22
to Harry Cutts, ChromiumOS Development
Many Thanks Harry for the tip!, Many thanks a lot for your quick responses, much appreciate for your help!

1. I will check them out for sure! Just to double check please, I am using the cpfe image & have logged in , may i know pls, still would I be able to get the browser logs using  echo "--vmodule=..." & "tail -F /var/log/chrome/chrome"?
2.  May I know please, along with this may I know please, how can I get the kernel log messages also, along with browser logs please?

Many thanks in advance again!

Harry Cutts

unread,
Sep 5, 2022, 1:26:53 PM9/5/22
to appu s, ChromiumOS Development
On Mon, 5 Sept 2022 at 18:17, appu s <appusha...@gmail.com> wrote:
Many Thanks Harry for the tip!, Many thanks a lot for your quick responses, much appreciate for your help!

1. I will check them out for sure! Just to double check please, I am using the cpfe image & have logged in , may i know pls, still would I be able to get the browser logs using  echo "--vmodule=..." & "tail -F /var/log/chrome/chrome"?

See the page I linked (emphasis mine):
/var/log/chrome/chrome : contains messages that are written before a user has logged in. It also contains messages written after login on test images, where Chrome runs with --disable-logging-redirect.
 
2.  May I know please, along with this may I know please, how can I get the kernel log messages also, along with browser logs please?

Kernel logs can be obtained from dmesg, just like on any Linux system.

Harry Cutts
ChromeOS Touch/Input team

appu s

unread,
Sep 6, 2022, 1:30:50 AM9/6/22
to Harry Cutts, ChromiumOS Development
Awesome, thanks! 
Reply all
Reply to author
Forward
0 new messages