How can I debug MEX files without a Visual Studio license?

조회 수: 1 (최근 30일)
Daniel Poiesz
Daniel Poiesz 2018년 7월 17일
댓글: Rodrigo 2024년 10월 18일
I already used up a trial license and need to learn how some MEX C++ code is being executed. It doesn't seem worth it to pay for Visual Studio so I can debug MATLAB code. Are there instructions to use eclipse or another opensource method?
MATLAB version 9.4, 2018a
  댓글 수: 2
OCDER
OCDER 2018년 7월 17일
I'm not aware of anything else. You could just do what I do without VB - stare very closely at each line of code, work out what it does in the head, and place mexPrintf statements at checkpoints to see what's going on... Definitely challenges you to memorize and predict C++ behavior, as errors are costly. Maybe there's a better free way - I'll keep an eye on this post to see what the other's do.
Daniel Poiesz
Daniel Poiesz 2018년 7월 17일
Thanks for the advice. I'll look into mexPrintf, the whole mex concept is new to me.

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

채택된 답변

CP
CP 2018년 7월 17일
I use Microsoft Visual c++ 2010 Express to debug c++ files that get compiled into mex functions. I believe the license is free. You just have to go to the website and sign up for the key, and they will send it your email.
  댓글 수: 2
Daniel Poiesz
Daniel Poiesz 2018년 7월 20일
편집: Daniel Poiesz 2018년 7월 20일
Thank you, I should qualify for this license since I am only debugging open source code and not developing anything new.
For other readers the express line is now called Visual Studio Community.
Rodrigo
Rodrigo 2024년 10월 18일
Unfortunartely, for enterprise companies, the Visual Studio Community requires a license at the time when this comments is being written.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call C/C++ MEX Functions from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by