How to open chrome-devtools:// url type in cef?

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.

How to open chrome-devtools:// url type in cef?

Postby hdnn » Thu Jan 09, 2020 9:44 am

In Chrome i have possibility to open urls that starts with chrome-devtools://, but in cefclient demo app I can't open devtools by this method. I need that to connect to external V8 Inspector server and my devtools url looks like this: chrome-devtools://devtools/bundled/inspector.html?ws=127.0.0.1:8008.

Is there any way to open devtools for connect to external host by WebSocket?

I already tried pass url from code
Code: Select all
host->GetBrowser()->GetFocusedFrame()->LoadURL("chrome-devtools://devtools/bundled/inspector.html");

but it didn't help
hdnn
Newbie
 
Posts: 1
Joined: Thu Jan 09, 2020 9:27 am

Re: How to open chrome-devtools:// url type in cef?

Postby magreenblatt » Thu Jan 09, 2020 10:23 am

Run with the `--remote-debugging-port=xxxx` command-line flag and load http://localhost:xxxx in Chrome, or call the CefBrowserHost::ShowDevTools method. See example usage in cefclient.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: TakashiHSD and 29 guests