skip to Main Content

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?

2

Answers


  1. you can start the: Webview Developer Tools from Command Palette

    Use Source tab and set a breakpoint

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search