Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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