Debugging JavaScript in Chromium Embedded Framework

stefan picture stefan · Mar 18, 2015 · Viewed 29.5k times · Source

I have a WPF application which uses CEF to display web content. My question is, is there a way to debug the Javascript/Web parts inside a WPF application?

Answer

Eido95 picture Eido95 · Feb 22, 2016

You may also use ShowDevTools() extension method (source)

ChromiumWebBrowser browser = new ChromiumWebBrowser();
browser.ShowDevTools(); // Opens Chrome Developer tools window

CEFSharp Developer Tools window