Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10: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 21: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 21:14 Go to previous messageGo to next message
James is currently offline JamesFriend
Messages: 1
Registered: March 2010
Junior Member
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 11:48 Go to previous messageGo to next message
Daniel Behrenwaldt is currently offline Daniel BehrenwaldtFriend
Messages: 1
Registered: April 2011
Junior Member
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 09:16 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: April 2011
Junior Member
Password and username would be very usefull.

THX
Re: Debugging Matlab Mex Files with Eclipse+CDT [message #999420 is a reply to message #667348] Sat, 12 January 2013 03:05 Go to previous messageGo to next message
Victor Escorcia is currently offline Victor EscorciaFriend
Messages: 2
Registered: January 2013
Junior Member
The link is broken. Could you fix it?
Re: Debugging Matlab Mex Files with Eclipse+CDT [message #1708748 is a reply to message #999420] Sun, 20 September 2015 02:28 Go to previous message
Yali Du is currently offline Yali DuFriend
Messages: 1
Registered: September 2015
Junior Member
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: Thu Apr 25 11:33:32 GMT 2024

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

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

Back to the top