New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging with source maps #58
Comments
We use webpacks devtool feature under the hood. From what I understand from the following issue is that not all source-maps will work in Firefox. Since I am currently on vacation, I can't actually test this. Please let me know if this helps. webextension-toolbox build firefox --devtool=cheap-eval-source-map |
Please continue your vacation! Thank you very much for taking the time to reply.
|
Hi @codewithcheese, If it's not a problem, I reopened this issue and I will add this information to the README.md, as this can be useful for others as well. |
Thanks so much for the webextension toolbox.
I feel really dumb since I can not for the life of me to get sourcemaps to load in Firefox. The .map files are present but in Firefox they fail to load.
I have managed to get them working in chrome by adding the extension directory as a workspace.
I generated a extension with generator-web-extension and have tried loading it via about:debugging in firefox and web-ext.
I receive the following error.
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://1cbd74c0-6413-472e-a5f8-10fcf1debb5f/scripts/background.js
Source Map URL: background.js.map[Learn More] (unknown)
I am expecting source maps to load and to be able to set a breakout point in background.js.
The text was updated successfully, but these errors were encountered: