The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

Advanced Search

Back to Topic List Back to Topic List  
Prabhakaran thirugnanam

Posts: 37
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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.