CEF 144.0.16 remote debugging not working

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.

CEF 144.0.16 remote debugging not working

Postby rock2000 » Mon Mar 23, 2026 7:06 am

With Visual Studio 2022 (C++17), I could build and run both cefclient and cefsimple without a problem. However, when I try to enable remote debugging, I could only get blank screen on my browser.

What I've done in cefclient:
1. Add "remote-allow-origins" in function OnBeforeCommandLineProcessing() in client_browser.cc:

Code: Select all
  void OnBeforeCommandLineProcessing(
      CefRefPtr<ClientAppBrowser> app,
      CefRefPtr<CefCommandLine> command_line) override {
    // Append Chromium command line parameters if touch events are enabled
    if (client::MainContext::Get()->TouchEventsEnabled()) {
      command_line->AppendSwitchWithValue("touch-events", "enabled");
    }

    // below I added the line
    command_line->AppendSwitchWithValue("remote-allow-origins", "*");
  }


2. Assign remote_debugging_port in RunMain() in cefclient_win.cc:

Code: Select all
  //....
  CefSettings settings;

  if (!sandbox_info) {
    settings.no_sandbox = true;
  }
  // add my code below
  settings.remote_debugging_port = 50000;
  // ...


When I run, the browser shows, I open Chrome and connect either with url "localhost:50000" or "chrome://inspect", all resulted in a blank page with HTTP 200OK.

When I try to connect the url "http://localhost:50000/json", I got following json result:

Code: Select all
[ {
   "description": "",
   "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@523d8b83478e992b99dcbfdf347e06e4e7ac9371/inspector.html?ws=localhost:50000/devtools/page/43AD4B70C428E80EC5958CC542AEEE06",
   "faviconUrl": "https://www.gstatic.com/images/branding/searchlogo/ico/favicon.ico",
   "id": "43AD4B70C428E80EC5958CC542AEEE06",
   "title": "Google",
   "type": "page",
   "url": "https://www.google.com/",
   "webSocketDebuggerUrl": "ws://localhost:50000/devtools/page/43AD4B70C428E80EC5958CC542AEEE06"
} ]



Did I miss anything? Please help. Appreciate your great help.
rock2000
Newbie
 
Posts: 9
Joined: Tue Nov 11, 2025 11:20 pm

Re: CEF 144.0.16 remote debugging not working

Postby magreenblatt » Mon Mar 23, 2026 9:41 am

It could be a version mismatch issue if you're running Chrome M146/147 as the chrome://inspect host. You can try updating your CEF version to match.
magreenblatt
Site Admin
 
Posts: 13217
Joined: Fri May 29, 2009 6:57 pm

Re: CEF 144.0.16 remote debugging not working

Postby ShadowLich » Sat Apr 11, 2026 5:22 am

magreenblatt wrote:It could be a version mismatch issue if you're running Chrome M146/147 as the chrome://inspect host. You can try updating your CEF version to match.

On CEF 138 linux I had the exact same behaviour but in production we have CEF 81 & CEF 108 running (all platforms: linux-arm linux-arm64 linux-x64 win32) CEF 117 (specific views framework usage for imx8 arm64 due to wayland ozone usage and not usable windows position for headless browsers) and remote debugging is always shown well in any host browser, edge, firefox, chrome whatever the host version is, we also use tunneling the client platform debugging port without difficulties on a windows dev platform.
8088 is our debugging port usage
I found myself using the 127.0.0.1:8088/json/list page to have the correct ws or the devtools page on any host browser works... well until it crashes. As well as right-click the browser shows inspect that works also... with crash sometimes any time after opening.
ShadowLich
Newbie
 
Posts: 1
Joined: Thu Nov 03, 2022 5:03 pm


Return to Support Forum

Who is online

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