debugging a mex file with eclipse cdt

A while back I rewrote some time-critical matlab code in java. I was able to debug the code using eclipse. When matlab executed the statement calling the java code, execution would shift to the Eclipse environment.
I'd now like to repeat this behavior in a different situation. I've written C++ code and compiled it with mex. It will replace some time-critical matlab code. I'd like to debug it using Eclipse CDT. I've tried using the "attach to Process" feature of the Eclipse debugger, but that paralyzes matlab. How should I proceed?
Don

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2011년 10월 6일

0 개 추천

Strange - I don't know why attaching the MATLAB process to Eclipse should hang MATLAB - especially because you seem to have done this successfully before. Perhaps you could also try Visual Studio or gdb: http://www.mathworks.com/help/techdoc/matlab_external/f32489.html

댓글 수: 1

Donald Frankel
Donald Frankel 2011년 10월 6일
thanks for the reply, Kaustubha. Our target platform is linux, so Visual Studio is not an attractive option. The link you suggested may be helpful; I will give it a try. Meanwhile, take a look at the link that finally allowed me to debug with java (go all the way to the end). Perhaps you will see why I am asking again in the C++ context: http://www.mathworks.com/matlabcentral/newsreader/view_thread/155261

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

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2011년 10월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by