I created a mex file using the command "mex -g -v filename.c". It was successfully created and even the debug file .pdb also created. But unable to debug (or put break point.) in C file opened in the Visual studio environment. I did the following. 1.Generated mex file in Matalab R2009b. 2.Open Visual studio 2008 3.Tools->Attach to process->MaTALB. 4.File->Open -> the coresponding c file. 5. Put the break point. (it's not enabled and when I run the corresponding model, the break point doesn't get hit).
I'm able to compile and run a sample "hello world" program in my visual studio. Is there any other setup needs to be done for enabling this debugger option.