Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (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 next message
Eclipse UserFriend
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
Re: Debugging Matlab Mex Files with Eclipse+CDT [message #187000 is a reply to message #184538] Sun, 04 March 2007 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: elliottwaldron.gmail.com

Geli wrote:
> 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
>
>

Thanks for the tutorial, it was a great help for me as I am new to
Eclipse. I am trying to debug mex files on Windows using MinGW/gnumex.
I can build the mex file using make, but I am not sure how to get
Eclipse and Matlab to talk to each other when, as you state, you need to
launch MATLAB and execute the mex DLL independently of Eclipse.

Thanks in advance.

Elliott
Re: Debugging Matlab Mex Files with Eclipse+CDT [message #521839 is a reply to message #187000] Thu, 18 March 2010 17:14 Go to previous messageGo to next message
Eclipse UserFriend
Which username and password do I need to access the video?
Re: Debugging Matlab Mex Files with Eclipse+CDT [message #662889 is a reply to message #184538] Fri, 01 April 2011 07:48 Go to previous messageGo to next message
Eclipse UserFriend
Hello Geli,

I have found your posting concerning the eclipse / matlab debugging topic and tried your link:

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

towards the short tutorial.
I do not have a password or login...

I would be happy if you could send me that tutorial in order to speed up my intended integration of eclipse and matlab as a combined development environment.

Best regards,


Daniel
Re: Debugging Matlab Mex Files with Eclipse+CDT [message #667348 is a reply to message #184538] Thu, 28 April 2011 05:16 Go to previous messageGo to next message
Eclipse UserFriend
Password and username would be very usefull.

THX
Re: Debugging Matlab Mex Files with Eclipse+CDT [message #999420 is a reply to message #667348] Fri, 11 January 2013 22:05 Go to previous messageGo to next message
Eclipse UserFriend
The link is broken. Could you fix it?
Re: Debugging Matlab Mex Files with Eclipse+CDT [message #1708748 is a reply to message #999420] Sat, 19 September 2015 22:28 Go to previous message
Eclipse UserFriend
Hi,Geli
The link is broken. I cannot get access to the tutorial. Could you please fix it or send it to my email: yali.du86@gamil.com
Previous Topic:${resource_name} is empty in make target
Next Topic:(Solved) Indexer disagrees with compiler
Goto Forum:
  


Current Time: Mon Jun 23 00:14:27 EDT 2025

Powered by FUDForum. Page generated in 0.48713 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top