Debugging Mex file using Visual studio 2010

Hi I have written a mex file and I would like to debug it using visual studio 2010. I followed steps mentioned in Mathwork website :
I should mention that I can compile mex with -g code successfully but when I insert the breakpoint it says: the breakpoint cannot be currently hit. No symbols have been loaded for this document.
Then when I run the mex code from Matlab, it does not create any break point and it does not do the debugging. When I go to debug--> windows--> module--> next to matlab says cannot find or open the PDB file.
Can anyone please help me to solve this problem.

8 件のコメント

chess
chess 2016 年 7 月 2 日
I do not understand what you mean. That one was for gcc (minGW) this is with Visual studio 2010. Both are important but completely different questions.. In this problem the steps mentioned in matlab website but it is not debugging I cannot create a breakpoint.
Walter Roberson
Walter Roberson 2016 年 7 月 2 日
It is the same code to be debugged by the same person, and a solution for one compiler would probably leave the other question unnecessary. The question are related.
chess
chess 2016 年 7 月 3 日
Ok. please respond to this question that I remove the other one but it seems nobody can answer whatever questions I ask.
Walter Roberson
Walter Roberson 2016 年 7 月 3 日
編集済み: Walter Roberson 2016 年 7 月 3 日
I just checked. Including the two questions about debugging, you have posted 19 questions, 16 of which had already been given at least one Answer. I have now Answered the remaining question that was not about debugging, so 17 out of 19 of your Questions now have Answers. That very different than "nobody can answer whatever questions I ask".
I cannot answer your questions about debugging on MS Windows because I have not tried to debug anything on MS Windows since the days... now that I think back, it might have been before there was an MS Windows, when it was still DOS.
chess
chess 2016 年 7 月 3 日
Walter, I did not mean all of my questions I was referring to the last two questions about debugging mex file. The other questions I asked was while ago. I am really stuck on these two questions and I was told if you have question about Matlab you better ask from people in Mathwork or post it to Matlab forum and that's what I did. Do you know any other Matlab expert forum that I can ask my question.
Walter Roberson
Walter Roberson 2016 年 7 月 3 日
I understand that there is a German language forum, and that there is a stackoverflow forum.
Note: you asked your question on a Saturday of a summer holiday weekend in Canada (July 1 -- Canada Day) and USA (July 4 -- Independence Day), the first weekend after the elementary and secondary schools finished for the year. A lot of people are away for the weekend.
Walter Roberson
Walter Roberson 2016 年 7 月 3 日
Have you considered the option of posting your source and describing the error you are encountering?

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

製品

質問済み:

2016 年 7 月 2 日

コメント済み:

2016 年 7 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by