Show DevTools for cefsimple application

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Show DevTools for cefsimple application

Postby jakaw » Thu Jan 31, 2019 1:26 pm

I would like to show DevTools for cefsimple. I use cefclient as example but is a a little bit complex.

In cefsimple when a press F12 show me a warning about wntdll.pdb not included and nothing happens.

I create a HWND with CreateRootWindow similar in cefclient application:

Code: Select all
CefWindowInfo windowInfo;
CefRefPtr<CefClient> client;
CefBrowserSettings settings;

devtool_hwnd = CreateRootWindow();

windowInfo.SetAsChild(devtool_hwnd , RECT());
browser->GetHost()->ShowDevTools(windowInfo, client, settings, inspect_element_at);


But the Window shows blank content.
jakaw
Mentor
 
Posts: 64
Joined: Thu Mar 21, 2013 1:18 pm

Re: Show DevTools for cefsimple application

Postby Czarek » Mon Feb 04, 2019 4:10 pm

On Windows there is also windowInfo.SetAsPopup method that you can use. If still having issues try passing NULL window handle as first argument that method.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Show DevTools for cefsimple application

Postby jakaw » Mon Mar 11, 2019 2:11 pm

Czarek wrote:On Windows there is also windowInfo.SetAsPopup method that you can use. If still having issues try passing NULL window handle as first argument that method.


Thanks, it works!
jakaw
Mentor
 
Posts: 64
Joined: Thu Mar 21, 2013 1:18 pm

Re: Show DevTools for cefsimple application

Postby inplainenglish » Sat Jan 18, 2020 12:18 pm

Is there a Mac solution for this?
inplainenglish
Newbie
 
Posts: 6
Joined: Thu Oct 24, 2019 12:50 pm

Re: Show DevTools for cefsimple application

Postby HarmlessDave » Sat Jan 18, 2020 9:03 pm

inplainenglish wrote:Is there a Mac solution for this?


Did you look at the CEFClient code?
HarmlessDave
Expert
 
Posts: 370
Joined: Fri Jul 11, 2014 2:02 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 52 guests