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.

Ctrl F2 when debugging a program using CEF4Delphi

Post Reply
KenS
Posts: 28
Joined: Sat Aug 10, 2024 12:44 am
Location: Australia

Ctrl F2 when debugging a program using CEF4Delphi

Post by KenS »

OK, I understand CEF4Delphi creates a duplicate of my exe (don't know why but know it does).

Scenario: working in Delphi making changes and testing to my email program.

My "production" version of email is also running.

Ok, I get to some point in my development version, stopped at some breakpoints, stepping through code, and realize there is a problem in my code. I am ten levels deep in routine calls so just reset, Ctrl F2.

In the past, occasionally I could not re-compile (cannot create exe). Lately it seems to happen almost every time, so I have to kill the exe from TaskMan. With the live version running it is hit or miss.

Ideas?

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

Re: Ctrl F2 when debugging a program using CEF4Delphi

Post by salvadordf »

KenS wrote: Mon Dec 02, 2024 6:24 am OK, I understand CEF4Delphi creates a duplicate of my exe (don't know why but know it does).
Chromium uses multiple processes for stability reasons. CEF uses the same application executable or a different EXE to handle all those subprocesses.

Read the following links for all the details :
https://www.briskbard.com/index.php?lang=en&pageid=cef#firststeps
https://www.chromium.org/developers/design-documents/multi-process-architecture/
KenS wrote: Mon Dec 02, 2024 6:24 am Scenario: working in Delphi making changes and testing to my email program.

My "production" version of email is also running.

Ok, I get to some point in my development version, stopped at some breakpoints, stepping through code, and realize there is a problem in my code. I am ten levels deep in routine calls so just reset, Ctrl F2.

In the past, occasionally I could not re-compile (cannot create exe). Lately it seems to happen almost every time, so I have to kill the exe from TaskMan. With the live version running it is hit or miss.

Ideas?

Thanks
Ken
Applications using CEF browsers should be closed following the destruction steps described in the code comments of the demos.

Killing the application process abruptly from the IDE may leave some of the subprocesses running.
KenS
Posts: 28
Joined: Sat Aug 10, 2024 12:44 am
Location: Australia

Re: Ctrl F2 when debugging a program using CEF4Delphi

Post by KenS »

Sorry, been away. Thanks for the info.

Ken
Post Reply