I know there is build-in developer tools, that can debug code and inspect dom tree, but is it possible to debug webview js code in external debugger?
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
you can start the: Webview Developer Tools from Command Palette
Use Source tab and set a breakpoint
The web view debugger is the external tool, so to speak. No way to go more external for web views.
However, since you have a web app/web page for the web view, you could launch that outside of VS Code in a standalone browser and debug there. That’s what I do with a vite SPA based on preact. Development is done in VS Code using an external browser. Then I do a production build and launch that in my extension.