I have a DLL and an executable setup to allow for code hot reloading. The executable reloads the DLL when there are any changes to it. It works fine when using a standalone debugger such as windbg. I would like to be able to use the visual studio debugger the same way.
The problem is that if I attempt to rebuild the project, the linker is unable to write to the pdb files because visual studio has them locked. So I get the following error:
LINK : fatal error LNK1201: error writing to program database 'c:\Users\maxim\source\repos\transforms\x64\Debug\particles.pdb'; check for insufficient disk space, invalid path, or insufficient privilege
How can I prevent visual studio 2019 from locking the pdb files?