How can I debug mex file

4 ビュー (過去 30 日間)
Nathan Earl
Nathan Earl 2016 年 9 月 25 日
コメント済み: Walter Roberson 2024 年 8 月 27 日
I have downloaded a .m file and a .mex file (I have also the associated .c file). The .m file calls a function of the .mex file. If I run the .m file, it´ll throw a runtime-error in the .mex file. My question is: How can I debug the mex file? I can´t open it like a .m file. It gives me the line, which throw the error, but I don´t know how to see the code. One of my ideas was to use the c file, but I can´t detect the error line, since the code is completly different. I read, that Visual Studio could help, but it is not for free, so is there another solution?
  1 件のコメント
Walter Roberson
Walter Roberson 2024 年 8 月 27 日
Note: Visual Studio is free for non-commercial use. (Unless you exceed your lifetime limit on number of installations. Which is certainly possible, especially if you run virtual machines.)

サインインしてコメントする。

回答 (1 件)

Piyush Kumar
Piyush Kumar 2024 年 8 月 27 日
Please check this documentation link that describes "Running and Debugging MEX functions".

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by