Thread Subject: Efficient debugging of mex-files

Subject: Efficient debugging of mex-files

From: Michael Salloker

Date: 7 Dec, 2004 12:47:46

Message: 1 of 3

Hello,

in the devolping process of C mex-files (both for MATLAB and Simulink)
the debugging process as described in Tech-Notes 1605 and 1819 is very
time-consuming.

I have always to load the dll, set MATLAB as application, load the
source file and start MATLAB to debug my functions. Is there a way to
accelerate this process? I am using Visual C 6.0 and Visual C .net.

Thank you

Michael

Subject: Efficient debugging of mex-files

From: AJ \"no z\" Johnson

Date: 7 Dec, 2004 09:59:32

Message: 2 of 3

"Michael Salloker" <michael.NOSPAMsalloker@fh-joanneum.at> wrote in message
news:cp4593$t20$1@newsreader1.utanet.at...
> Hello,
>
> in the devolping process of C mex-files (both for MATLAB and Simulink)
> the debugging process as described in Tech-Notes 1605 and 1819 is very
> time-consuming.
>
> I have always to load the dll, set MATLAB as application, load the
> source file and start MATLAB to debug my functions. Is there a way to
> accelerate this process? I am using Visual C 6.0 and Visual C .net.
>
> Thank you
>
> Michael

I use the method described in the MexWizard package on the file exchange.
Maybe it will work for you.
-Aj

Subject: Efficient debugging of mex-files

From: SeBy

Date: 7 Dec, 2004 11:32:35

Message: 3 of 3

Michael Salloker wrote:
>
>
> Hello,
>
> in the devolping process of C mex-files (both for MATLAB and
> Simulink)
> the debugging process as described in Tech-Notes 1605 and 1819 is
> very
> time-consuming.
>
> I have always to load the dll, set MATLAB as application, load the
> source file and start MATLAB to debug my functions. Is there a way
> to
> accelerate this process? I am using Visual C 6.0 and Visual C .net.
>
> Thank you
>
> Michael
>

Well,

Personally after mexing with -g, I wrote a little mfile
initializating the dll, says test_mex.m where I put all my constant
,etc .. before calling the mex dll.

Then, in the debug setting of VC6.0, where you must locate the
matlab.exe, I also put theses following argurment in the parameter
fields

-minimize -nosplash -nodesktop -r test_mex

Then, I presse F5 in VC, matlab is automatically lunched, the
test_program launch the dll and it stop where I put the breakpoints.

Hope to help you.

Sébastien

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com