Make sure that the mex has been compiled with -g
>> mex -g function.c
Restart Matlab with:
shell> matlab -Dgdb
>> dbmex on
Run the code:
>> function(param)
To access the debugger:
>> dbmex stop
To add a breakpoint at the gateway function (just before your code):
No comments:
Post a Comment