Linker
Debugging Settings
Generate Debug Info
To ensure that the PDB filename is not included in the executable, follow these steps:
- Open the project properties in Visual Studio
- Navigate to
Configuration Properties -> Linker
- Look for the
Debugging
option - Set the
Generate Debug Info
toNO
By default, these settings should exclude the PDB file name. This is a standard practice to avoid exposing sensitive information about the project structure.
Other Options for Generate Debug Info
/DEBUG:FULL
: This option generates full debugging information, including file paths and symbols, in the PDB file/DEBUG:FASTLINK
: This option is optimized for link time. It generates partial debugging information, aiming to speed up linking/DEBUG:NONE
: This option excludes debugging information entirely. It's suitable for release builds where debugging is not required