Hi,
In order to be able to debug a mex file you have to compile it with the -g switch. The debug itself is done using the c\C++ compiler. Details depends on the kind of compiler you are using.
I'm using gcc compiler on unix SGI platform, matlab version 6.1, release 12. I still can't figure out how to do this debugging process on unix
what i know is (as u said) by typing this command on unix
>>mex -g somefile.c
then what should i do? How am I going to insert the breakpoint in the C file?