Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Debugging Mex file in Visual studio.
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Prabhakaran thirugnanam

Posts: 35
Registered: 6/17/10
Debugging Mex file in Visual studio.
Posted: Jan 27, 2014 3:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I created a mex file using the command "mex -g -v filename.c". It was successfully created and even the debug file .pdb also created. But unable to debug (or put break point.) in C file opened in the Visual studio environment.
I did the following.
1.Generated mex file in Matalab R2009b.
2.Open Visual studio 2008
3.Tools->Attach to process->MaTALB.
4.File->Open -> the coresponding c file.
5. Put the break point. (it's not enabled and when I run the corresponding model, the break point doesn't get hit).

I'm able to compile and run a sample "hello world" program in my visual studio. Is there any other setup needs to be done for enabling this debugger option.

Feedback appreciated.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.