This is known issue affecting all Delphi versions running on Windows 10 Creators update.
Non-functional debugger after updating to Windows 10 Creators
https://quality.embarcadero.com/browse/RSP-17972
The debugger goes haywire for everyone in our organization with
Creators and Tokyo/Berlin. Reverting to Windows Anniversary brings
back the sanity.
Debugger problems with Tokyo/Berlin and Creators:
App takes a long time to load with modules loading and unloading and
re-loading many times
IDE freezes
Memory consumption of bds.exe explodes, sometimes (> 3GB)
I will attached before and after screenshots showing how modules load
and unload and re-load with Windows 10 Creators.
I presume these problems have the same root cause(s) than those in
https://forums.embarcadero.com/thread.jspa?messageID=884382
Issue is caused by newly introduced optimizations in Windows dll (bpl) loading. It does not affect standalone exe applications.
Embarcadero is working with Microsoft in fixing this in future Windows update and/or hotfix.
More info: http://blog.marcocantu.com/blog/2017-june-delphi-packages-creators-update.html