CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

Context Menu, Inspect Element, Web Inspector

Open tshadle opened this issue 15 years ago • 5 comments

Is it possible to display the WebKit Web Inspector for debugging the DOM and JavaScript? In Chrome it's displayed from "Inspect element" on the context menu.

I don't see any context menu in CefWebBrowser. I don't see anything in the API for context menus, web inspector or developer tools.

If this isn't possible is there another way to debug the HTML and JavaScript?

Thanks for any help, and congratulations on a promising project!

tshadle avatar Apr 26 '11 13:04 tshadle

It is possible with latest CEF-s, see on latest builds/samples of CEF. But, i think, that CefSharp, will needed some improvements for this.

ghost avatar Apr 26 '11 13:04 ghost

As fddima says, it's possible, we just need to expose it. It's on the TODO pile.

chillitom avatar Apr 26 '11 14:04 chillitom

Is this one still on the todo list? If so, is there quick hack I can do on my box to get at it today? If not, I'm happy to take a shot at exposing this myself, if you could suggest some similar examples I might model it off of in the existing codebase. Thanks very much for running such a useful project.

oconnor663 avatar Jan 12 '12 00:01 oconnor663

I know @fddima has exposed this functionality with his CefGlue project, that's definitely worth checking out. Might also be available in @ataranto's branch, if not it shouldn't be that hard to add, perhaps @fddima could describe what would be involved, as far as I'm aware it's just providing the right resource files in the working directory and making a CEF API call.

chillitom avatar Jan 12 '12 08:01 chillitom

@chillitom @oconnor663 CEF doesn't expose "Inspect Element" functionality at all (in CEF only 'standard' context menus are works). But CEF allow loading developer tools as well, in most cases it will be enough. If someone interested in concrete feature like "inspect element" (i.e. loading dev tools with positioned element under cursor) - then you will needed go to CEF forum/issue tracker, 'cause current CEF API doesn't provide this.

ghost avatar Jan 12 '12 16:01 ghost