web-scraper-chrome-extension
web-scraper-chrome-extension copied to clipboard
How to debug and use breakpoints in JS code which built by Webpack?
I am using Firefox and I am not finding an easy way to debug and put breakpoints. Webpack puts the code I want to put a breakpoint on in a long line of an eval statement. I am using yarn watch:dev.
How does one debug and place breakpoints in such code which is hard to read? I am familiar with debugging extensions before the JS code gets built.
- Run "watch:dev"
- Open "Add-ons and themes" menu
- Click "Tools for all add-ons"

- Choose "Debug add-ons"
- Find web-scrapper extension and click on "Inspect" button

- Choose debug panel

- Here you can find active extension scripts

- On some page open dev-tools pannel and choose Web Scrapper

- You may notice how the panel appeared new scripts like "Controller"
- Profit

Thanks a lot! I didn't think to look under 'Webpack' in there.