MATLAB: Matlab coder : static library with debug information

debugmatlab coderstatic library

How do I build a static library (.lib) with debug information using the coder project tool ?
I am using Matlab R2012a on Windows with Microsoft SDK

Best Answer

set DEBUG_BUILD=1 in the .tmf file used to generate the makefile
For Visual C++ this is
"R2012a\toolbox\coder\rtw\c\xrt\xrt_vc.tmf"
This file path can be found in the file "rtw_proj.tmw" located in the last generated code directory