Build the Debug MFC Libraries Without CodeView Information

Overview

This is the one of the easiest methods for reducing the size of your debug executable file. The only thing lost by using this method is the ability to step into the MFC code itself. All other debug facilities, such as ASSERTs and TRACEs, remain.

The following command builds the medium-memory model debug MFC library without CodeView information for Windows (NAFXCWD.LIB):

NMAKE MODEL=M TARGET=W DEBUG=1 CODEVIEW=0