Is it possible to debug mex code with Eclipse?
I am trying to write some mex code but it is painful to debug it on the console with gbd. Is it possible to use Eclipse or the GUI of Matlab? If these are not feasible methods, what is the best way of writing mex code that provides good debug capabilities? Eitan T Debugging C/C++ MEX files in gdb is already comprehensively covered in the official documentation , so my suggestion is to try and integrate gdb with Eclipse CDT. There's plenty of information out there about how to do it properly, so I'm not going to repeat everything here. The best tutorial I know is IBM's two-part guide,