How to debug a C-MEX file on MacOS X This is a simple example to debug binary mex files compiled by Matlab.I am going to use Gdb, and Matlab without UI. You can apply this trick with LLDB on MacOS X, and also with GDB on any Linux platform. Binary Setup The only thing you need to do before running a debugger is to compile the target binary with -g option.>> mex -g target.c As most developers knew, '-g' option means to add symbols' .. 더보기 이전 1 2 3 4 5 다음