How to stop UE4 from creating new Assemblies

How can i stop UE4 from generating new assemblies at compile time because VS will lose track and i can’t attach to the process anymore (code version differs) and i have to reopen the Editor to make sure the code matches.

Doesn’t help if i only use the Editor Compile button or compile in VS and I can’t find an option in the Editor to make it stop pumping new DLL files with random build number in the file that VS doesn’t see for some reason.

Edit: As seen in the picture, the 1st time I boot VS from the Editor I get only the 1st collection of files but if I modify the source code and recompile either in VS or the Editor, I get the 2nd collection of files added to the folder and it continues to do so as I compile more and more with more changes until a restart of the editor.

This is a problem i guess because when i re-attach VS for debugging, it tells me that the source is different and can’t load the debug symbols and my breakpoints dont get hit.

Now this is way over my competence but I remember reading something about “Compile Single File” which sound like it would possibly help.

Check the UnrealVS Extension documentation (if you haven’t) here:

Apologies if I totally missed the point.

Indeed I dont have the that extension installed and might give a test.
Also dont worry any help is greatly appreciated and I’ve updated my question with more info please have a look.

Apparently these files are actually the version of the game that runs in the editor as explained here:
A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums and you can’t apply your changes to the game without rebuilding them. (I guess) You can maybe use something from the UnrealVS extension for Quick Build options but I doubt that these files will disappear.

How is it going? Any luck with loading the debug symbols?

Hi, i.m still facing from time to time this issue and the only sure way is to close the editor and launch with ctrl+f5 from VS and once i.m in the editor i can safely attach then. Now that 4.20 is out maybe i.ll have a better time since this might be a gimmick of VS and UE4 working together.