I have a problem debugging a Matlab S-function written in C. The source code is analysis.c, after mexing this file by
mex -g -v analysis.c
I obtain "analysis.mexw32" and "analysis.mexw32.pdb".
In Visual Studio 2010, I open "analysis.c", attach it to the process "Matlab" and set a breakpoint. So far, this breakpoint is not accepted:
"Breakpoint not hit. No symbols loaded."
When I run the file in Matlab, everything is executed without hitting the breakpoints. Can anybody give me some advise with this?
I have done this before, and it worked straightforward.
yprime.cexample in the same directory asanalysis.cand try to successfully hit a breakpoint?