How to debug a Chrome browser extension which is crashing?

前端 未结 1 764
[愿得一人]
[愿得一人] 2020-12-28 15:03

I have developed a Chrome browser extension and, on rare occasion, it crashes (eg, a bubble appears in the upper-right stating \"_____ has crashed! Click here to reload it.\

相关标签:
1条回答
  • 2020-12-28 15:26

    I once had a similar issue and was able to figure out the root of the issue by starting chrome with verbose logging enabled. To start Google Chrome on Mac with verbose logging you'll need to open a terminal and run something similar to the following:

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

    Then watch the debug log file by tailing the log file.

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

    On Ubuntu try:

    tail -f ~/.config/google-chrome/chrome_debug.log
    

    It's very chatty but it may be just enough to help you fix your issue.

    enter image description here

    0 讨论(0)
提交回复
热议问题