F. Brier
F. Brier

Reputation: 201

How To Debug a vscode extension's WebView javascript

I am building a vscode extension, but I cannot set breakpoints in the Javascript in the WebView. Is there a way to debug the Javascript, even though the WebView is a separate process? Specifically, I am trying to incorporate a Telerik TreeView/TreeList and it is not displaying. The HTML and Javascript will display, in a self-contained data version, not using postMessage, if saved off to an HTML file and loaded into a browser. It is most likely a problem in my code, but I need a way to debug it. Thank you.

Upvotes: 12

Views: 7033

Answers (2)

t Win
t Win

Reputation: 221

Use the following command: Open Webview Developer Tools

Upvotes: 22

F. Brier
F. Brier

Reputation: 201

I haven't solved my problem, but a page I had read 10 times explained how to debug a WebView in vscode. I should be able to figure it out from here. RTFM .

Upvotes: 2

Related Questions