Use Per-File Build Options

HomeOverview

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

  1. On the Project menu click Settings to open the Project Settings dialog box.

  2. Click the desired file in your Debug target's tree view to highlight it.

  3. Click the C/C++ tab.

  4. With the General category selected, click Line Numbers Only in the Debug info list box.