필터 지우기
필터 지우기

How to use Eclipse to debug mex files?

조회 수: 14 (최근 30일)
Robert
Robert 2013년 6월 18일
댓글: Mesbah 2015년 5월 18일
For all those Linux users (like me) who are not content using gdb's command line interface and would prefer to use a modern IDE for debugging, is it possible to get Eclipse to function as a debugging tool for Matlab mex files? I have been able to successfully run gdb in the Eclipse console and execute compiled mex functions, but I can't figure out how to get Eclipse to display variables from gdb or step through the source code, etc. Has anyone else been successful with this?

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2013년 6월 18일
You might instructions here useful: Debugging on Linux Platforms.
  댓글 수: 1
Robert
Robert 2013년 6월 19일
Sorry, but that page is not useful for this question. In fact, I already used the instructions on that page, but they only explain how to debug with gdb...not how to integrate debugging with Eclipse.

댓글을 달려면 로그인하십시오.


Jan
Jan 2013년 6월 19일
편집: Jan 2013년 6월 19일
Did you ask an internet asearch engine before asking the forum? This is recommended to save the resources of the contributors. See http://www.lmgtfy.com/?q=Matlab+debug+Eclipse:
Please do not cross-post questions in different forums without including links to the other questions. It would waste the time of the voluntary helpers, if they post an answer given in another forum already.
  댓글 수: 1
Robert
Robert 2013년 6월 19일
Yes, I have searched extensively for an answer. Sorry, but the links you give are not particularly helpful. The first one contains a dead-link (to the actual flash video). The second one is related to matclipse, which is a plug-in to develop m-files in eclipse. It does not allow debugging of mex files in Eclipse (nor even debugging m-files in Eclipse). The third link admittedly is similar to my question, but there is no acceptable answer. The IBM guide that Eitan T. cites does not actually provide any debugger facility for gdb. It is basically a tutorial on how to implement a plug-in for Eclipse which interfaces with a debugger. I do not have the skills or patience to implement my own Eclipse plug-in for gdb debugging. I'm guessing that someone has already done this...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by