Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

how to access new window

User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: how to access new window

Post 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;
coater
Posts: 187
Joined: Sat Sep 29, 2018 1:51 pm

Re: how to access new window

Post 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!!!
Post Reply