Not it's not possible using only MATLAB.
I haven't tried, but it is possible using general purpose c/c++ debuggers. Mathworks has a pretty detailed documentation on how to do this:
http://www.mathworks.de/de/help/matlab/matlab_external/debugging-c-c-language-mex-files.html