The Microsoft® Visual Studio® development environment provides complete source code debugging, including the ability to set breakpoints, examine variables, and step through the source code line-by-line.
For information on debugging MEX-files compiled with other MATLAB supported compilers, see Debugging on Windows in Technical Note 1605, MEX-files Guide.
Visual Studio 2005
This section describes how to debug using the default compiler, that is, the compiler used to build MATLAB.
-
Select the Microsoft Visual C++ 2005 compiler. At the MATLAB prompt, type:
mex -setup
Type y to locate instal