- Compile file: mex -g mySFunction.cpp. This will create mySFunction.mexw64 and mySFunction.mexw64.pdb.
- Open Visual Studio, open mySFunction.cpp
- Click Debug/Attach to process, select Matlab.exe.
- Set breakpoint in Visual Studio
- Run Simulink
- Code will stop in Visual Studio.
No comments:
Post a Comment