Use Per-File Build Options
Home | Overview
You can specify the /Zd (Line Numbers Only) option, among others, for specific files. Doing so can greatly reduce the amount of debug information per module.
To set the /Zd option
- On the Project menu click Settings to open the Project Settings dialog box.
- Click the desired file in your Debug target's tree view to highlight it.
- Click the C/C++ tab.
- With the General category selected, click Line Numbers Only in the Debug info list box.