Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » CDT » Debugging Matlab Mex Files with Eclipse+CDT
Debugging Matlab Mex Files with Eclipse+CDT [message #184538] Tue, 13 February 2007 05:35 Go to previous message
Eclipse User
Originally posted by: st.netrent.ch

Hi all,
For those who are interested, i made this little Flash tutorial on how
to use eclipse to debug mex-files under linux.

http://info-te.ch/~geli/mexdebug/mexdebug.html

This should also work on Windows if you install gnumex
(http://gnumex.sourceforge.net/) in combination with the MinGW compiler.
But when useing windows, do not debug matlab from start, instead start
matlab, execute your mex file (in order for matlab to load the
corresponding dll !!!)
-------
Tip: make shure that your mexfile "return;"s if for instance
"nlhs==0"... so you can execute (and thus load) the mex file without
harming matlab: This is usefull if you want to debug Segmentation
Violations etc...
-------
then attach with eclipse to your MATLAB process, set your breakpoints
etc... resume matlab and call your mexfile again with the appropriate
parameters

Best regards
Geli
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:CDT uninstalls itself on startup!
Next Topic:External #define -> indexer
Goto Forum:
  


Current Time: Mon May 20 02:45:28 EDT 2013

Powered by FUDForum. Page generated in 0.09627 seconds