This works for me:
Answer from Embarcadero Support:
If you logged a support case about the IDE closing while debugging, (I presume this is on 12.2) I would have told you to do the follow:
- Shut the IDE down.
- run regedit
- goto this key: HKEY_CURRENT_USER\Software\Embarcadero\BDS\23.0\Debugging
- add a string entry (if it is not there ) called HighlightDebugWindows and then set the value to False
- now start the IDE and see if the same problem occurs.