wxt-dev / wxt

⚡ Next-gen Web Extension Framework
https://wxt.dev
MIT License
4.47k stars 185 forks source link

VSCode Debugging #52

Open aklinker1 opened 1 year ago

aklinker1 commented 1 year ago

We should be able to set breakpoints in our editor.

I have never setup a debugging connection like this before, I assume it's possible. web-ext uses open, which opens a debug port. Somehow we just need to tell VS Code (and other editors) what that port is? I need to research this a bit more.

Links

aklinker1 commented 1 year ago

https://github.com/mozilla/web-ext/issues/2891

aklinker1 commented 12 months ago

Someone figured it out. It's not using web-ext to open the browser, but it might be possible to pass the same args into web-ext:

https://github.com/aklinker1/vite-plugin-web-extension/issues/147#issuecomment-1806234202