Compile (cl.exe) with /Zi /Od /Fd
Link (link.exe) with /DEBUG /DEBUGTYPE:PDATA
The produced executables will contain the full path in the Dynamically Linked Libraries (DLLs) and Executables.
To debug in Visual Studio 2017 go to File > Open Project/Solution… and select your executable.
I like science and writing software.