Debug a mex function in Visual Studio

后端 未结 2 1116
悲&欢浪女
悲&欢浪女 2021-01-06 11:32

I\'m trying to wrap existing C++ code into a MATLAB callable function. I\'m using Visual Studio 2013 to generate the MEX file . The MEX file is created properly, I can call

2条回答
  •  臣服心动
    2021-01-06 12:13

    Turns out \bin\matlab.exe actually runs \bin\w64\matlab.exe. So if I ask Visual Studio to run that, breakpoints are triggered as expected.

    Running MATLAB this way under the debugger is a lot slower than any other way, but at least now I can debug my code.

提交回复
热议问题