Rename debug symbols file (pdb) on cargo build

Viewed 30

I have a cdylib that I am copying and then using in the debugger with the goal of hot reloading on build. However, the .pdb file for it is not copied. Because of this, when building, sometimes the pdb is locked by the debugger and the build fails.

With cpp / cl, I can pass a link arg from the build batch file -PDB:foo%random%.pdb to achieve my goal. I am not sure how I can do the same with cargo build.

Does anyone have any insights how I can do this?

0 Answers
Related