Page 2 of 2

Re: how to access new window

Posted: Mon Oct 01, 2018 7:54 am
by salvadordf
Read the "Debugging" section in this page :
https://www.briskbard.com/index.php?lang=en&pageid=cef

Run your app with the "Run->Run Without Debugging..." menu option and later click on the "Run->Attach To Process..." menu option and select the second process which should be the renderer.

Set a breakpoint inside the GlobalCEFApp_OnProcessMessageReceived procedure and check that the second message has arrived and the browser.identifier is correct.

Keep in mind that all the code in that procedure is executed in a different process and you cannot access the GUI. You can use the "CefLog" procedure to add custom text lines to a log file.

I assume that your app is based in the DOMVisitor demo and the CreateGlobalCEFApp procedure has this code to enable logging :

Code: Select all

  GlobalCEFApp.LogFile              := 'debug.log';
  GlobalCEFApp.LogSeverity          := LOGSEVERITY_ERROR;

Re: how to access new window

Posted: Mon Oct 01, 2018 8:04 am
by coater
I am very sorry, it is my default.
I forget that I have limit browser identifier in render process.

thank you very much!!!