필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to debug on Mac platform MEX files built from multiple source files using Xcode?

조회 수: 1 (최근 30일)
Samuel Gingras
Samuel Gingras 2016년 12월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
I’d like to debug MEX files built from several source files but I have some trouble, the program never stop at any breakpoint! Here's what I did.
I have three source files wrote in c, one with the mexFunction and the others with some computational routines. I compiled those successfully in Matlab using mex –g. Then I created a project with Xcode following the instruction in Matlab documentation.
https://www.mathworks.com/help/matlab/matlab_external/debugging-on-mac-platforms.html
I set a breakpoint at the beginning of the mexFunction and ran the binary but the program never stops at the breakpoint.
I tried with the example provide in the documentation, yprime.c, and it works perfectly, every breakpoint that I set are hits.
I don’t see why it doesn’t work when I do the same but with multiple files.
Thanks for help!
Sam

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by