Is it possible to have different debugging port for renderer

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.

Is it possible to have different debugging port for renderer

Postby hkurra » Thu Jan 18, 2018 9:28 am

We can set the debugging port either through command line switch or setting.remote_debugging_port but these options set the same debugging port for every renderer process, is it possible to provide different debugging port for every renderer process?
I have also tried this....
Code: Select all
void CEFMyApp::OnBeforeChildProcessLaunch(CefRefPtr<CefCommandLine> command_line) {
   command_line->AppendSwitchWithValue("remote-debugging-port", "9091");
}

Not working....
hkurra
Techie
 
Posts: 22
Joined: Wed Jun 21, 2017 8:13 am

Re: Is it possible to have different debugging port for rend

Postby Czarek » Thu Jan 18, 2018 11:25 am

Try setting it in OnBeforeCommandLineProcessing callback.
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: Is it possible to have different debugging port for rend

Postby magreenblatt » Thu Feb 01, 2018 5:45 pm

The remote debugging server is managed by the main process. There's no support for per-renderer-process servers.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Is it possible to have different debugging port for rend

Postby hkurra » Mon Feb 26, 2018 1:19 am

Yes, you are right I was not able to provide the different port for different renderer but what surprises me Adobe's Applications using CEF for "HTML Extension support".
In their extension, it is possible to provide a different debugging port for different extension and as far as understand they are also creating the different process/renderer for their every HTML extension.
Do you have any idea how they are doing it or it is wrong to consider their CEF Integration as the reference?
hkurra
Techie
 
Posts: 22
Joined: Wed Jun 21, 2017 8:13 am


Return to Support Forum

Who is online

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

cron