Console.logs from the inside of the iframe in the webview are not printed. Also it isn't possible to debug source file from the iframe.
- Clone the repo with the example: https://github.com/hsiwkin/vsc-bug-example
- Start the server containing page we want to show in the iframe located in webview:
npm run start:server
- Press
F5
to compile and run the extension - Run the Hello World command from the Command Palette (Ctrl+Shift+P) in the new window
- Open Webview Developer Tools console
- Reload Webviews
- Notice that instead of 2 console logs (from the webview and the iframe) two errors are printed, each of which saying:
VM93 main.js:10 [Violation] Avoid using document.write().
- Two console logs:
Hello from the iframe
andHello from the webview
are printed. - It it possible to debug source files from iframe.
- It is possible to view DOM of ifrmame document in the Webview Developer Tools
- Two errors are printed, each of which saying:
VM93 main.js:10 [Violation] Avoid using document.write().
- It's NOT possible to debug source files from iframe.
- It's NOT possible to view DOM of ifrmame document in the Webview Developer Tools