How to debug a Mex-C file?
How to debug a Mex-C file?
(OP)
I have a C file with a mex function in it. How to do debugging process for such a file in Matlab? Thank you very much in advance!
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
How to debug a Mex-C file?
|
RE: How to debug a Mex-C file?
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.
Joe
BSTeX- Equation viewer for Matlab
http://www.geocities.com/bstex2001
Joe
BSTeX- Equation viewer for Matlab
http://www.geocities.com/bstex2001
RE: How to debug a Mex-C file?
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?
Cheers!