Closed dkwon17 closed 1 year ago
Instead of trying to catch and print errors to console, display errors in the errors tab in Google Chrome:
This can help make it easier to determine when the extension throws an error
To test this PR,
Checkout this PR and run:
curl https://gist.githubusercontent.com/dkwon17/b67322e741d418811864678045041003/raw/79b5fd02ea9dadeefd399f691ae844207f7d6186/gistfile1.txt | git apply
in order to throw an error when trying to determine the GitHub project URL.
Run yarn build and sideload the extension located in dist/chromium to Google Chrome
yarn build
dist/chromium
Open a GitHub repo page (ex. https://github.com/redhat-developer/try-in-dev-spaces-browser-extension)
Verify that the error appears in the console and the error output in chrome://extensions:
chrome://extensions
Instead of trying to catch and print errors to console, display errors in the errors tab in Google Chrome:
This can help make it easier to determine when the extension throws an error
To test this PR,
Checkout this PR and run:
in order to throw an error when trying to determine the GitHub project URL.
Run
yarn build
and sideload the extension located indist/chromium
to Google ChromeOpen a GitHub repo page (ex. https://github.com/redhat-developer/try-in-dev-spaces-browser-extension)
Verify that the error appears in the console and the error output in
chrome://extensions
: