title: Debugging Matlab C S-function with Visual Studio 2010
body: <p>I have a problem debugging a Matlab S-function written in C. The source code is analysis.c, after mexing this file by</p>
  
  <p>mex -g -v analysis.c</p>
  
  <p>I obtain "analysis.mexw32" and "analysis.mexw32.pdb".</p>
  
  <p>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:</p>
  
  <p>"Breakpoint not hit. No symbols loaded."</p>
  
  <p>When I run the file in Matlab, everything is executed without hitting the breakpoints.
  Can anybody give me some advise with this?</p>
  
  <p>I have done this before, and it worked straightforward.</p>