Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging JavaScript in Chromium Embedded Framework

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?

like image 550
stefan Avatar asked Mar 18 '15 09:03

stefan


People also ask

How do I debug a Chromium code?

Chrome debug logEnable Chrome debug logging to a file by passing --enable-logging --v=1 command-line flags at startup. Debug builds place the chrome_debug. log file in the out\Debug directory. Release builds place the file in the top level of the user data Chromium app directory, which is OS-version-dependent.

What is the name of the tool used for debugging JavaScript in Chrome browser?

React developer tools for Chrome The React tools allow you to inspect the contents of components. You can also view and edit their properties and state.


1 Answers

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

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

CEFSharp Developer Tools window

like image 153
Eido95 Avatar answered Oct 13 '22 00:10

Eido95