External Interfaces/API    

Debugging C Language MEX-Files

On most platforms, it is now possible to debug MEX-files while they are running within MATLAB. Complete source code debugging, including setting breakpoints, examining variables, and stepping through the source code line-by-line, is now available.

To debug a MEX-file from within MATLAB, you must first compile the MEX-file with the -g option to mex.


  Using LAPACK and BLAS Functions Debugging on UNIX